4 ms·
I'll admit I don't know much about Ada, but the "when" syntax additions described here look interesting. Is there any difference between "return when ..." and "
by Varriount 5y ago
I'll admit I don't know much about Ada, but the "when" syntax additions described here look interesting. Is there any difference between "return when ..." and "if ...: return" in Ada?
- henrikeh 5y agoAFAIK, there is no difference in meaning between the `if` construct and the `when` syntax: https://github.com/AdaDoom3/ada-spark-rfcs-1/blob/master/considered/rfc-conditional-when-constructs.rst https://github.com/AdaDoom3/ada-spark-rfcs-1/blob/master/con... This, together with the `@` syntax, are interesting cases of adding a bit more sugar to Ada. Hopefully it heralds a good future.