danilopedraza / komodo

The Komodo programming language code repository
https://komodo-lang.org/
GNU General Public License v3.0
7 stars 0 forks source link

List comprehension correctness #42

Closed danilopedraza closed 3 months ago

danilopedraza commented 5 months ago

Right now, the correctness of list comprehensions is checked in exec and solved by panicking. This is bad and should be done in the weeder.

danilopedraza commented 3 months ago

Well, this should be observed in a semantic level too. #35

danilopedraza commented 3 months ago

I already fixed this by restricting the syntax of list and set comprehensions. Further checks are semantic.