vapourlang / vapour

Typed superset of R
http://vapour.run
Apache License 2.0
194 stars 3 forks source link

Return check #13

Closed JohnCoene closed 2 months ago

JohnCoene commented 3 months ago

Check that return statements are valid, e.g.: no assignment. Given it's a keyword and not a function one might be tempted to write return x = 1

JohnCoene commented 2 months ago

We can't sensibly check for that right now, and it should really not be written often: a lot of work for little return.