If $AnyProgrammingLanguage was German, unary “not” operator would be postfix.
if (something == null nicht) { … } if (something == null nicht) { … }https://www.scala-lang.org/blog/2017/04/01/announcing-skala....
Bravo Martin
It's obviously the == that should be postfix.
"Falls etwas nicht null ist"
if something not null == Falls etwas nicht gleich null ist.
if something not == null
Falls etwas nicht ungleich null ist.
if something not != null falls etwas nichtet If (something nicht null ==) { }
I.e. falls (etwas nicht null ist) { },Statement unless x;
This did not make left to write code scanning me happy.
Only fractionally because I hate all post-conditionals with a passion. They're the garden paths[1] of coding.
Personally, I do hate both of those (including the Python's ternary operator). But there is something with the bashism it shares, of `do_it() or die "trying"` that looks quite nice.
$x = foo() unless $y > 10
As with any language feature, you can over-use it, but in general once I was used to it I missed it in every other programming language.vs
``` Konst foo = auf bekommenFooAsynchron() warten; ```
if not something if something degilse