age icon indicating copy to clipboard operation
age copied to clipboard

Research what needs to be done to implement List Comprehension

Open eyab opened this issue 2 years ago • 1 comments

eyab avatar Mar 28 '23 16:03 eyab

We could start by looking at how list comprehensions are implemented in existing languages such as python, perl and scala. I think CPython is a good place to start because Python's list comprehension syntax is quite clean, and it is written in C which should give us pointers on how to implement it in AGE.

According to this and this post on stackoverflow, list comprehensions are converted directly to bytecode instead of being converted to C as an intermediate step. Perhaps this could give us some indication of how to proceed?

mutaharaamir avatar Apr 26 '23 01:04 mutaharaamir

This issue is stale because it has been open 45 days with no activity. Remove "Abondoned" label or comment or this will be closed in 7 days.

github-actions[bot] avatar May 11 '24 00:05 github-actions[bot]

List comprehension was implemented and added by PR #1610 .

MuhammadTahaNaveed avatar May 11 '24 11:05 MuhammadTahaNaveed