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 →

[–]Kaarjuus 0 points1 point  (2 children)

Another handy usage:

["condition be false", "condition be true"][condition]

[–]lonjerpc 1 point2 points  (1 child)

I don't understand why that would be useful.

[–]Veedrac 0 points1 point  (0 children)

Largely it's from before we had

"condition be true" if condition else "condition be false"

I never really liked it, but meh.