SomeRanDev / laxe

A Python-like programming language built entirely using Haxe metaprogramming.
MIT License
11 stars 2 forks source link

Postfix if/unless #1

Open neimanpinchas opened 8 months ago

neimanpinchas commented 8 months ago

when I went from JS to CoffeeScript, I've eased stress from my fingers due to lesser parens and brackets, as well as cognitive stress by using postfix unless/if on single line if statements, everything is an expression (I am not talking about array operations, since haxe supports them internally.

Later when I found Haxe includes EIAE, I've opted in for the type system and and multi-target, and waived on the brackets.

Now I found laxe, I wonder, what would it take to add postfix if/unless?

neimanpinchas commented 8 months ago

OK, I will try to use onlyif from https://github.com/SomeRanDev/Haxe-ExtraFeatures, and will let know how it works