Hacker News new | ask | show | jobs
by Modified3019 903 days ago
I think space-style nonsense was a great thing to have up front, because it immediately informed me that I will hate this language and never use it. Genuinely appreciate them saving me time.
1 comments

I don't get this.

Do you purposely 'not' indent your code, to obfuscate it?

I think they share my distaste of languages (like python) that use indentation instead of brackets to signify a code block. People have different preferences and it's totally valid, whatever the reason for those preferences.
What I don't get is, even if you have brackets, you should be indenting and organizing your code.

It seems like people that fight against indenting must have some bad habits, and are upset that the compiler is enforcing any change.

Like rehab, they have an addiction (sloppy indenting, poor organization), and the compiler is rehab (forcing you to deal with your addiction to give up bad habits).

I do prefer brackets as they are more 'clear'. That doesn't mean different peoples code should have wildly different ways of indenting. We all follow the same traffic rules or it turns into chaos.

Copy-pasting Python code can easily end up in wrong indentation and broken code. Copy-pasting code in bracketed languages usually pastes and then auto-formats that section automatically.
Sure, but now you're perpetually stuck with the visual noise of unnecessary brackets _all_ the time. Maybe it's because I use vim, but I don't see this use case as terribly important because I can easily reindent with >> and << of a selection.
If you use vim and hate brackets that much, write a linter that will hide the brackets from working view and apply them according to how you white space.
A lot of people prefer the visual noise of { and } to having to manually fix the indentation of code and still having the visual noise of :