vrok / have

The Have Programming Language
http://havelang.org
BSD 2-Clause "Simplified" License
272 stars 11 forks source link

Support Ternary Operator #17

Open sadlil opened 7 years ago

sadlil commented 7 years ago

Is there any plan to support ternary operator? with go sometimes i misses those badly.

vrok commented 7 years ago

Personally, I sometimes like using ternary operator too, and probably there will be some form of it. Anyway, implementing it in a zero-cost form (without extra function call or similar) will require some infrastructure to be built first in code generator (it will be done anyway, it's needed for other things too), so it will take some time (a few months?).