E2Function to get lambda of e2function #3036
Denneisk
started this conversation in
Suggestions
Replies: 2 comments 6 replies
-
|
@Vurv78 hoping you can comment on this also since I still respect your authority over the functions library. |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Only reason I haven't implemented this yet is because I kinda hate the syntax of it and disambiguation between overloads. Right now I'm leaning towards something more like this: let F = getFunction("print", "number", "string") # alternative 1, parameters as varargs
let F = getFunction("print", [ "number", "string" ]) # alternative 2, parameters as an optional arrayAnd for ambiguous overloads, have ... I should just rewrite the type system while I'm at it, fmscl. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Function that returns an extension function. For example,
This avoids having to wrap a function to use it as a lambda.
I know there's no provisions for varargs in lambdas yet, but we can just ban varargs until a solution comes around.
Is
getFunctiona good name? What aboute2function?Beta Was this translation helpful? Give feedback.
All reactions