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
Thanks for trying Derw out! Lambdas are currently aren't type-checked, though I think fixing it for this specific case makes sense. It's possible to see if the value is a lambda, and if args are missing, they get passed on. Though I would say the general style of Derw is to be explicit with arguments rather than going down the point-free road, so there's also a case for just having it be a compile error to be missing an argument. I'll have a think about it!
The following
derw
code defines a lambda of typestring -> string
.Running
derw compile
on this results in the following output:which declares that main is a
string -> string
but in reality,main: string -> any -> string
as is evident from the code.However, using the regular function notation like so
fixes the problem:
The text was updated successfully, but these errors were encountered: