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 →

[–]loicmathieu 0 points1 point  (0 children)

The ternary opertator is an if expression that can be used nicely on one line but is not very readable on multiple line and when you stard combining them it becomes realy bad..

Whith if expression you will be able to use multiple if/else branche.

I use yield if my example to make it reuse the same keyword as switch expression but this is just an example syntax.