-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if then else and chained block syntax #8489
Comments
@JaroslavTulach i think you messed up the link? |
@kazcw what do you think? As far as I can see in debugger the chained code is equivalent to |
There are three tests. Two work, but |
I'm looking for a consistent rule that would make this work. Here's a candidate: The body of an
This is a change from current behavior, in which if the This would also affect other block types, e.g. this: main =
value = if t then f1 else f2
y Would be equivalent to this: main =
value = (if t then f1 else f2)
y IMO it minimizes confusion to treat all block types the same way in this regard. What do you think, @JaroslavTulach? If we shall do it, I can use the AST-comparison script to check for any existing code relying on the old behavior. |
+1 |
Jaroslav Tulach reports a new STANDUP for yesterday (2024-02-21): Progress: - rust parser: https://github.com/enso-org/enso/pull/8671/files#r1497057518
Next Day: Rust parser, Extension methods for Java |
Jaroslav Tulach reports a new STANDUP for yesterday (2024-02-22): Progress: - chained
Next Day: Extension methods for Java |
Jaroslav Tulach reports a new STANDUP for yesterday (2024-02-23): Progress: - bookclubbing
Next Day: Extension methods for Java |
Assuming that
and
shall be the same. They are not right now on
2023.2.1-nightly.2023.12.7
The text was updated successfully, but these errors were encountered: