I’m not a fan personally of adding additional complexity to comprehensions, but I was curious if this idea had been discussed before, so I did some searching. There’s a related idea for allowing binding variables in comprehensions in issue 32905, so I went ahead and posted your proposed syntax there.
non-Jedi
16
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Array comprehension is inconsistent, given the column-major property of julia | 28 | 1390 | January 18, 2026 | |
| `let` syntax weirdness | 38 | 2412 | January 3, 2021 | |
| For-loop vs list-comprehension | 15 | 2161 | April 7, 2021 | |
| Performance of loops | 30 | 1056 | August 19, 2024 | |
| Comprehensions versus pre-allocation | 16 | 2164 | June 22, 2023 |