Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> significant whitespace

That's not an advantage



From my personal perspective - it's a major plus when choosing a language - under the general auspices of "readability counts". I find Python-like languages much easier to read and maintain - and significant whitespace is a not-insignificant factor in that.


It's not like code in other languages isn't indented.


Indentation helps, but it's a pretty pointless thing when you make a lot of other decisions that hurt readability.


It's an advantage for me, not for you. I've had experience with both and I prefer significant whitespace. The only place where I found it to be a problem was in Jade templates since HTML is kind of white-space sensitive (spaces between tags cause spaces in the output). I do like programming with significant whitespace.


Well, not for the offshore and other coderz around that can't / won't cleanly indent if their lives depended on it.


> That's not an advantage

Yes it is. I have been programming Python, C++, Java and C# over the last 10 years.

Python's convention for white-space beats the other ones hands down both when writing and reading large code bases.


So says you. The entire python community disagrees, and that's not an inconsiderable number of folks.


No, the Python community consists of a mix of people who think that the manner in which whitespace is significant in Python (most languages have significant whitespace of some form) is advantageous, people who think it is neither advantageous nor disadvantageous that are attracted to the language for other reasons, and people who think that it is disadvantageous, but not so much as to negate other advantages they see in the language.

It is a mistake to conclude that because language X has feature Y, the entire community around language X thinks that feature Y is a positive feature.


> entire python community disagrees

I can tell by the downvotes. Also, you can't prove that.




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

Search: