Hacker News new | past | comments | ask | show | jobs | submit login

It's not that bad in go though because you should just run gofmt every time you save. It's bad when you have to do it by hand.



I don't see why it should be bad to do by hand. I have never experienced any difficulties with this style when using any other language in Vim.


Many people do not enjoy the rote task of administering whitespace by hand, and consider it a problem better left to computers. I'm sure there were some people who thought maintain ledgers was no problem before spreadsheets. Or, not to put too fine a point on it, who thought that auto-indenting editors were a pointless luxury. That doesn't make your opinion wrong, but I think you'll find it's rare in a few years.


It is a task perfectly suited for automation though... I'm not sure why you think it should be any harder to automate than any other style. Find your base indentation level, insert the proper number of tabs. Find your beautification alignment level (already done by most autoindenters. Any autointender that doesn't do this is leaving this task to the user anyway regardless of the scheme being used...), insert the proper number of spaces.

http://vim.wikia.com/wiki/Indent_with_tabs,_align_with_space...

http://www.emacswiki.org/emacs/SmartTabs

Intellij also has this capability, and likely other editors as well.

I prefer to do it by hand, but that is nothing but my personal preference. It has nothing to do with the scheme itself. If someone is opposed to doing things by hand, they don't need to do this by hand.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: