News for hackers. Stuff that matters.
Re:Reasons Python Sucks by firefwing24 on Tuesday December 18, 2018 @06:08PM (#18711466)
People hate on spacing, but people rarely talk about the benefits that specific spacing has.

Yeah, sure, you can complain about how strict it might be, and complain about how it can cause bugs when something is mis-indented.

But it's not like brace-languages are perfect either.

How about people who mix tabs & spaces within a single line because of lack of discipline or maybe a mistake from refactoring code? Imagine that nightmare of rereading that based on what editor you use.

Missing braces can sometimes be annoying and difficult to find, and placing the brace in the wrong place can result in bad code. Isn't that equivalent to a lingering whitespace in Python?

Yeah sure, you might say "Once you code enough, that usually doesn't happen" But Pythonistas can say the same thing with their indentation.

It's just a different way of programming. Get over it.

Re:Reasons Python Sucks by cageface on Tuesday December 18, 2018 @06:10PM (#18711484)
The more serious issue with significant white space is that it makes writing code formatting tools like Prettier impossible. That’s too much to give up to avoid having to write an extra brace or two IMO.
Re:Reasons Python Sucks by minusf on Thursday December 20, 2018 @01:17AM (#18722869)
heard of black?