1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-25 16:45:20 +03:00
juvix/tests/Casm
Łukasz Czajka 3030196fdd Non-recursive definitions (#3138)
* Closes #2968 
* Implements detection of function-like definitions, which either:
  - have some arguments on the left of `:`, or
  - have at least one clause.
* Only function-like definitions are recursive.
* Non-recursive definitions are not mutually recursive either, and can
be used only after their definition. This necessitates rearranging some
definitions in existing Juvix code.
* Changes the scoping of identifiers in record updates. Now field names
on the right side don't refer to the old values of the record fields but
to identifiers in scope defined outside the record update. To refer to
old values, one needs to explicitly use record projections, e.g.
```
r@Rec{x := Rec.x r}
```
2024-11-04 18:18:39 +01:00
..
Cairo/reference Cairo Elliptic Curve builtin (#2731) 2024-04-22 14:24:09 +02:00
Compilation Non-recursive definitions (#3138) 2024-11-04 18:18:39 +01:00
negative Cairo ASM language and interpreter (#2572) 2024-01-12 11:57:02 +00:00
positive The assert builtin (#3014) 2024-09-12 09:29:57 +02:00
Reg/positive Dead code elimination in JuvixReg (#2835) 2024-06-24 13:56:50 +02:00