Skip to content

Convert generated nested functions into multi-argument functions#12

Merged
yallop merged 1 commit intomasterfrom
arity
Jan 25, 2026
Merged

Convert generated nested functions into multi-argument functions#12
yallop merged 1 commit intomasterfrom
arity

Conversation

@yallop
Copy link
Copy Markdown
Owner

@yallop yallop commented Aug 21, 2025

Convert generated nested functions into multi-argument functions, i.e. when clients of the letrec library generate bindings for functions of the form:

   fun x -> fun y -> e

the letrec library now converts the generated rhs expressions into functions of the form:

   fun x y -> e

The OCaml PR Syntactic function arity describes the change to OCaml that motivated this change to letrec.

i.e. when clients of the letrec library generate bindings for
functions of the form

   fun x -> fun y -> e

the letrec library now converts them into functions of the form:

   fun x y -> e

The following PR describes the change to OCaml that motivated this
change to letrec:

   Syntactic function arity
   ocaml/ocaml#12236
@yallop yallop merged commit ba1ea6f into master Jan 25, 2026
1 check passed
@yallop yallop deleted the arity branch January 25, 2026 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant