Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
BartBB6898yIt might be my bad memory but doesn't it look the same in all languages? (That I know at least)
-
hiestaa4018y@BartBB in python ternary operator syntax is `a if test else b`
While in coffeescript it is `if condition then a else b`
the python way is best. Allows you to write super explicit statements such as `a if test1 else b if test2 else c if test3 [...] else z`. I know how if would look like with the java/C syntax, but I definitely don't wanna read it :p -
BartBB6898yWell, I guess it's time to go all in with Python and finally learn it properly, eh?
Thanks for reaching me something new. @hiestaa -
hiestaa4018y@BartBB pleasure, I can't tell how I love the python ecosystem tho I like to share it (as long as we don't talk about timezone and unicode... Can't be perfect eh!)
Related Rants
Ternary operator in Java, because damn it looks so slick
undefined
wk20
java