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
5
u/thunderseethe Apr 27 '26
How does this interact with polymorphism? If I have both a
compare: (A, A) => Orderingand acompare: (Int, Int) => Ordering, which one does mySort2 select when its instantiated atInt?