Closed jquorning closed 3 years ago
Hi @jquorning.
While I appreciate that you wrote a code sample that allows one to infer what feature you would like, I must say this is still not enough for what we expect of an issue here:
In the future, we would appreciate if you give some thought to your proposal by writing something with a minimum of polish before posting it here :slightly_smiling_face: Thanks in advance.
@raph-amiard , Thank You for your feedback. I home my latest changes bring more clarity to the proposed issue :-)
In the future, we would appreciate if you give some thought to your proposal by writing something with a minimum of polish before posting it here slightly_smiling_face Thanks in advance.
@raph-amiard Maybe you should consider using issue templates to suggest a structure for new issues?
@senier that's a great point, especially considering we have a template for RFCs, but not for issues! Thanks for the suggestion, we'll consider this.
Hello @jquorning. We have considered this (also in the scope of a more constrained RFC, #31) and think this is too general and error prone. Closing this. FWIW on the other hand we are considering #31.
Kind regards
@senier You'll be glad to know that we have issue templates now :wink:
Proposal
Statements are changed to allow conditional execution thereof based on the value of a boolean expression. The
when
keyword should be used to indicate a conditional statement.Examples
Rationale
It would be nice to be able to execute a statement depending on when a boolean expression evaluates to
True
. In many cases the program text would be shorter and arguably easier to read.Implementation
It should be easy to implement in the compiler.
Alternative