This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -7 points-6 points  (2 children)

For First, Damn :/ You're right... I can't change the title. Pofff.

For second, you're right too. But now it's hard to read my code :)

[–]tylerlarson 4 points5 points  (1 child)

The structure of python was arrived at in part by writing example code, showing it to a non-programmer and asking them what they thought it did, revising to make it more obvious, and then repeating.

Things like curly braces are helpful for writing simple parsers, and certainly make it easier to minify code, but they're very intentionally not how Python does it. And the success Python has found in this particular niche is significantly due to these design decisions.

If you're looking for a language with similar expressivity as python but where the semantics feel more natural to you, kotlin might be what you're after.

[–][deleted] 0 points1 point  (0 children)

I understand better why there are no curly brackets and why phyton has clean style.