1
1
mirror of https://github.com/anoma/juvix.git synced 2025-01-06 06:53:33 +03:00
juvix/include
Ł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
..
anoma Run Nockma in an Anoma node (#3128) 2024-10-29 17:32:59 +01:00
latex Export Juvix source code to latex (#2917) 2024-08-05 11:28:19 +02:00
package Non-recursive definitions (#3138) 2024-11-04 18:18:39 +01:00
package-base/Juvix/Builtin Update standard library coding style according to the guidelines (#3092) 2024-10-14 15:56:54 +02:00