Hacker News new | ask | show | jobs
by _pmf_ 4181 days ago
> It is far from being generaly accepted, see Clojure, Scala, Rust, Ruby, ... I'd say more new languages don't follow this than do. And despite general love for Python its most controversial feature is exactly this.

Maybe, but the question is whether they are better off or worse off for it.

2 comments

No, actually the question was whether it's universally accepted as a good idea. Obviously it isn't (universally accepted). No need to turn this into a discussion of the merits, that's been done here many, many times before.
lel, of course everyone is going to discuss about the smallest critique I stated. Bikeshedding at its best.
You did lead with that one.
I'm happy with either python-like, lisp-like or c-like syntax, just ban tabs if you use python syntax please.
Regardless of the relative merits of tabs vs spaces, tabs make the most sense _specifically in a Python-like language_.
I don't care about tabs vs spaces, I just don't want to have the "inconsistent identation" problem, and spaces are more fundamental (you can convert arbitrary tabs to spaces, you can't convert arbitrary spaces to tabs).

Also you cannot forbid spaces in code, but you can easily forbid tabs.