DEV Community

Discussion on: How to emulate Ternary Operators of Javascript in Python.

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

I love this, but at the same time I hate it 😂

Reminds me of how you can index arrays in C as 19[arr] (get the 20th element of the arr array) because it just gets translated to *(19+arr)

Is it pretty? No.

Does it make the language look good? No.

Is it fun though? Hell yea!

Collapse
 
vanshcodes profile image
NoobCoder

Yeah, I hated the syntax but loved it at the same time.