Add Compile Time 'if' Statement to Language
Registered by
Eike
Add an 'if' statement to the language that is only evaluated at compile time, similarly to the 'static if' statement of the D language. With this feature, compile time functions could be written in a simple style, with multiple return statements.
The implementation of the compile time 'if' would be very simple. The implementation of the run time 'if' could be much simplified, compared to the hybrid solution that is currently used.
Blueprint information
Related branches
Related bugs
Bug #391869: return from inside 'if' statement fails | Won't Fix |
Bug #572247: Implement print and cprint functions | Fix Released |
Bug #572256: Implement if and cif statements | Fix Released |
Sprints
Whiteboard
(?)