-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IDEA: Introduce a WITH based syntax for FOR-style iteration
I dislike how `for` looks and feels so much "heavier" than `with`, due to the `union` keyword and the need to parenthesize the body if it is a query, and especially if you need to have *nested* `for`s. So my idea is to introduce `<-` binding, which behaves like a `for` binding. So then you can do something like ``` with name <- {'Sully', 'Zhibo', 'Aljaž'} insert Person { name := name } ``` I modified some tests you can look at to compare. Is this a bad idea, and I'm just sleep-deprived? Does anybody but me like this? (Does anybody have any other ideas about lighter-weight `for`?)
- Loading branch information
Showing
6 changed files
with
91 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters