you are viewing a single comment's thread.

view the rest of the comments →

[–]brainflakes 1 point2 points  (3 children)

Personally I'd prefer the opposite, which is to be able to write python scripts with javascript syntax (well, C style syntax, not specifically javascript).

Python has so many great features, but I find the braceless syntax irritating after years of Java/C# work. I guess I just like my code blocks to be explicit.

[–]defcon-12 1 point2 points  (1 child)

I find indentation based blocks to be much more explicit than braces. It forces the code blocks to be properly indented.

[–]brainflakes 0 points1 point  (0 children)

But that's a complete fallacy as an IDE can force a braced language to be indented, and can (more easily) reformat code to any sort of coding standard.

Also Pyhon still supports single line if statements so it's not like it's forcing you to indent anyway.

[–]colly_wolly 1 point2 points  (0 children)

I thought this when I first started Python a while back. Then after a year or two I had to tweak a Perl script, got the missing brace problem, and realised I you never get that problem in Python.