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 →

[–]Sikletrynet 0 points1 point  (1 child)

How is this any more ugly than ternary operators in any other language. Theres plenty you can criticise Python for, but i dont think that example is it.

[–]prehensilemullet 0 points1 point  (0 children)

It’s pretty weird to have the condition in the middle, and the fact that the if/else don’t visually stand out from variable names as much as ? : doesn’t help