cloudRoutine / issueCommRepo

Sample Port of F# Uservoice Suggestions
0 stars 0 forks source link

Allow overloads of custom keywords in computation expressions #69

Open cloudRoutine opened 7 years ago

cloudRoutine commented 7 years ago

Allow overloads of custom keywords in computation expressions [12839142]

Submitted by Pierre Irrmann on 3/7/2016 12:00:00 AM
[ 13 votes ]

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).