You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current syntax for methods is quite hard to read, especially when there are multiple if-then-else branches.
Suggest we create an alternative syntax that's easy to read for the simple case and introduce :if:elsif and :else keywords for processing the more complex branching structure.
The text was updated successfully, but these errors were encountered:
I would use :elif rather than :elsif. The extra letter is no more clear (since it's still not complete like :elseif or :else-if), and Python's use of elif has cemented the 4-letter version as standard.
A proposal: if the work to implement a/the new syntax is not too much, how about implementing something so that people can play with it, with the understanding that it is subject to change?
(Based on discussion with @gefjon)
The current syntax for methods is quite hard to read, especially when there are multiple if-then-else branches.
Suggest we create an alternative syntax that's easy to read for the simple case and introduce
:if
:elsif
and:else
keywords for processing the more complex branching structure.The text was updated successfully, but these errors were encountered: