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 edited Apr 29 '26
The main motivations for this are:
show(Int)and ashow[A](List[A])which takes ashowimplicitly (for theA), thenshownow works on any level of nested lists (soshow([[[[[[[[[[42]]]]]]]]]])compiles and works).assertEqualsto print where the assert is called in the code).For the case of "normal" values being passed like this, we have yet to see if there are good use cases for this.