You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently they are all de-sugared into OCaml syntax fn () [@bs]
The thing is that in BuckleScript, since there is no syntax space for arity zero, so we make a special form that fn () [@bs] is treated arity zero application.
I wonder Reason could make a difference here which feels more intuitive:
fn (.) --> arity zero -> fn () [@bs] fn (. ()) --> arity 1 -> let unit = () in fn unit of course, some care need to be taken to avoid name collision
The text was updated successfully, but these errors were encountered:
Relevant: rescript-lang/rescript#3429
Currently they are all de-sugared into OCaml syntax
fn () [@bs]
The thing is that in BuckleScript, since there is no syntax space for arity zero, so we make a special form that
fn () [@bs]
is treated arity zero application.I wonder Reason could make a difference here which feels more intuitive:
fn (.)
--> arity zero ->fn () [@bs]
fn (. ())
--> arity 1 ->let unit = () in fn unit
of course, some care need to be taken to avoid name collisionThe text was updated successfully, but these errors were encountered: