-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: some gardening in the codebase #4393
base: master
Are you sure you want to change the base?
Conversation
a2a9ff8
to
a9ea1c2
Compare
@@ -274,7 +274,6 @@ and objblock s ty dec_fields = | |||
%type<Mo_def.Syntax.dec list> seplist(imp,semicolon) seplist(imp,SEMICOLON) seplist(dec,semicolon) seplist(dec,SEMICOLON) | |||
%type<Mo_def.Syntax.exp list> seplist(exp_nonvar(ob),COMMA) seplist(exp(ob),COMMA) | |||
%type<Mo_def.Syntax.exp_field list> seplist1(exp_field,semicolon) seplist(exp_field,semicolon) | |||
%type<Mo_def.Syntax.exp list> separated_nonempty_list(AND, exp_post(ob)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like inference gets this
@@ -983,18 +983,18 @@ let import_compiled_class (lib : S.comp_unit) wasm : import_declaration = | |||
let import_prelude prelude : import_declaration = | |||
decs prelude.it | |||
|
|||
let inject_decs extra_ds u = | |||
let inject_decs extra_ds = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine, but I actually prefer the explict match because then you see the arity of the function in the header.
I wonder if this actually produces more allocation, compiling to a proper curried function rather and a fast 2-argument Ocaml function (not that it matters here, but it could eslewhere).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LFTM
a9ea1c2
to
690a5e1
Compare
These are some code cleanups broken out from #4371.
No functionality changes.