Hullaballoonatic
09/20/2018, 7:25 PMif foobool then
instead of if( foobool )
? i would enjoy it for when using if
and else
as a ternary operatorShawn
09/20/2018, 7:28 PMthen
, but I do like to see braces and parens removed where it makes senseif/else
conditions but instead mandates the use of braces even with single-line expressionsHullaballoonatic
09/20/2018, 7:29 PMShawn
09/20/2018, 7:30 PMHullaballoonatic
09/20/2018, 7:31 PMCzar
09/20/2018, 8:16 PMif configure { false } { println("configured") } else { println("not configured")}
I think compiler would be even more confused than humans reading thisValV
09/21/2018, 8:11 AMif <first_statement> <second_statement> <third_statement> else <fourth_statement>
adding braces where it's necessary? Where the <first_statement>
is a condition, and the <third_statement>
, <fourth_statement>
are those which are returned as the results from the branch (as we have it)Czar
09/21/2018, 4:02 PMHullaballoonatic
09/21/2018, 4:03 PMwhen
syntax so much. is it more performance impacting than if
? what is the drawback to always using it instead of if
?