I suggest we ...

Allow overloads of custom keywords in computation expressions

I've been using custom keywords in computation expressions to write DSLs, and I would have loved to be able to have several signatures for the same custom keyword, in order to make some arguments optional in the expression.

When you try do it today, there is an error message such as "The custom operation 'myOperation' refers to a method which is overloaded. The implementations of custom operations may not be overloaded"

I'm aware this is a not-so-used feature, but I'd like to know how hard you think it could be (I would event be willing to have a look at how to implement it).

13 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Pierre Irrmann shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...
  • Jared Hester commented  ·   ·  Flag as inappropriate

    This would be great. If custom operators could take other custom operators as arguments it'd be even better.

F# Language

Feedback and Knowledge Base