mirror of
https://github.com/anoma/juvix.git
synced 2024-12-02 10:47:32 +03:00
5948a38a54
* Closes #2365 * Implements the syntax `f@{x1 := def1; ...; xn := defn}` and `f@?{x1 := def1; ..; xn := defn}`. Each definition inside the `@{..}` is an ordinary function definition. The `@?` version allows partial application (not all explicit named arguments need to be provided). This subsumes the old record creation syntax.
8 lines
91 B
Plaintext
8 lines
91 B
Plaintext
module UnexpectedArgumentNew;
|
|
|
|
type T := t : T;
|
|
|
|
f (a : T) : T := t;
|
|
|
|
x : T := f@{x := t};
|