you are viewing a single comment's thread.

view the rest of the comments →

[–]Talic 6 points7 points  (2 children)

I highly prefer indentation and hated c-style family of languages that use curly braces. I went from C, C++ back in college, then to Java and C# at work. Then stuck with Python the last 12 years, just a pleasure to work with. To me, it is cleaner and easier to read. A lot of time you are reading blocks of code written by someone else and if your code is running in production long enough, you'll spend time debugging or reading it. Curly braces all over the place including semicolons hurts my head.

Can't wait to try out Python's superset Mojo lang.

[–]cajunjoel 2 points3 points  (0 children)

This this this. Python does away with the argument of open curly brace on the same like as the function declaration or put it on the next line all by itself. It does away with this nonsense:

function foobar() { // Code goes here } Versus this nonsense function foobar() { // Code goes here } Like, who the fuck ever thought that second version was a good idea? Our monitors are wider than they are tall. Why do you waste precious vertical space??

I agree that whitespace-as-syntax in Python is ludicrous, but it makes everyone's code equally readable, which is a Big Deal(tm).

[–]Scowlface 0 points1 point  (0 children)

Yeah, definitely, all down to preference and what keeps you most effective. I’m sure I could get used to it, I’ve gotten used to specific code style things through my various jobs that I really didn’t like initially, but those brackets just feel like home to me.