Open towerofnix opened 8 years ago
Maybe we should have a then
that behaves like if
, so people can do the amazing surround function (true then {print(false);});
:tada:
If a user wants that..
then => if;
:P
No support for adding to built-in library anyways.
We should probably implement
else if
. I'm thinking of making it have a syntax like this:That doesn't look good until you read it like this:
As an example:
Maybe if there's an odd number of inputs the last input will be a fallback, as if all the above conditions were false?
(having both the issue number and
number
be 42 was purely coincidental 📦)As a side note, I need to implement unevaluated arguments into JS functions for this to work.