r/ProgrammingLanguages • u/marvinborner bruijn, effekt • Apr 27 '26
Discussion Effekt: Name-Based Implicits
https://effekt-lang.org/tour/name-based-implicitsWe recently added name-based implicits to our language. It's based on the work by Daan Leijen and Tim Whiting "Syntactic Implicit Parameters with Static Overloading". Let us know of your thoughts!
29
Upvotes
View all comments
Show parent comment
1
u/_marzipankaiser_ Effekt Apr 29 '26
While I don't know the Koka implementation in detail, the basic idea of this one is:
As per the "default implementation" idea: I hope that we can add something that can be used for this, and I don't see any reason why it should be particularly hard in our case. (Apart from finding time to implement it.) This is one of multiple things I'd like to see w.r.t. qualified names in Effekt. My current idea would be to allow namespace exports and prefer direct definitions over exported symbols (so not hard-coding "default" as a name), but I'm not sure this is what will happen in the end.