Skip to content
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

Chained operator block syntax #7904

Closed
kazcw opened this issue Sep 26, 2023 · 0 comments · Fixed by #8415
Closed

Chained operator block syntax #7904

kazcw opened this issue Sep 26, 2023 · 0 comments · Fixed by #8415
Assignees
Labels
-compiler p-medium Should be completed in the next few sprints

Comments

@kazcw
Copy link
Contributor

kazcw commented Sep 26, 2023

Spec: https://github.com/enso-org/design/blob/wip/wd/enso-spec/epics/enso-spec-1.0/03.%20Code%20format%20and%20layout.md#chained-operator-code-blocks

Example:

nums = 1..100
    . each random
    . sort
    . take 100

Should be equivalent to:
nums = (((1..100) . each random) . sort) . take 100

This is implemented in the parser but not yet supported in translation. I think it could be desugared to applications in the IR?

@kazcw kazcw added the triage label Sep 26, 2023
@jdunkerley jdunkerley added p-medium Should be completed in the next few sprints and removed triage labels Sep 29, 2023
@jdunkerley jdunkerley moved this from ❓New to 📤 Backlog in Issues Board Oct 3, 2023
@jdunkerley jdunkerley moved this from 📤 Backlog to ❓New in Issues Board Oct 3, 2023
@jdunkerley jdunkerley moved this from ❓New to 📤 Backlog in Issues Board Oct 3, 2023
@jdunkerley jdunkerley moved this from 📤 Backlog to ❓New in Issues Board Oct 10, 2023
@jdunkerley jdunkerley moved this from ❓New to 📤 Backlog in Issues Board Oct 10, 2023
@jdunkerley jdunkerley moved this from 📤 Backlog to ❓New in Issues Board Oct 17, 2023
@jdunkerley jdunkerley moved this from ❓New to 📤 Backlog in Issues Board Oct 17, 2023
@JaroslavTulach JaroslavTulach moved this from 📤 Backlog to ⚙️ Design in Issues Board Nov 28, 2023
@JaroslavTulach JaroslavTulach moved this from ⚙️ Design to 👁️ Code review in Issues Board Nov 29, 2023
@github-project-automation github-project-automation bot moved this from 👁️ Code review to 🟢 Accepted in Issues Board Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-compiler p-medium Should be completed in the next few sprints
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants