Benjamin (Inglor) Gruenbaum (2014-02-13T21:51:29.000Z)
domenic at domenicdenicola.com (2014-02-18T04:39:05.211Z)
When you asked about discussion and this ran into my mind :) I remember it was discussed here http://esdiscuss.org/topic/protocol-library-as-alternative-to-refinements-russell-leggett, ( the syntax in https://gist.github.com/genericallyloud/7086380 ) Do the semantics proposed above work with what's proposed there? The "using the function as an extension method" seems pretty similar. However , Russell's work proposes a form of polymorphic dispatch based on the extended type. For example: ```js let dmot = new DoingMyOwnThing("Bob"); dmot::map( n => n * 3;) // calls method `map` of the DoingMyOwnThing class instead of using the protocol method ``` This is really useful behavior that solves a few very real problems for me (it's real extension methods) - I think it would be very beneficial for discussions about bind syntax to allow or at least consider this.