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
4
u/Inconstant_Moo 🧿 Pipefish Apr 27 '26 edited Apr 27 '26
In my lang you just overload
<for anything you want to be sortable, so it's implied by the type of the thing being sorted and not by the context. I see that Effekt doesn't have typeclasses/interfaces/traits/whatever-they're-called-this-month. Are there plans for them? You could do this and a whole lot of other stuff too.But that aside, if I look for example at this ...
... if I write my
example2function like that, then today I've saved myself all the arduous labor of pressing thecandTABkeys on my keyboard. But six months from now, I've made my code harder for me to read. So I feel like if/when Effekt is used in production, there would be corporate policies against using implicits, and linters to detect them.