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/lngns Apr 29 '26
The readability aspect isn't so different from type inference and gradual typing, and there the wisdom I always heard was to fully type the APIs and do whatever we like inside modules (and rely on the IDE/linter/compiler reports, or manual ascriptions, to follow the code path in case of overloading or conversions).
I think it's worth noting that in Scala,
implicitvalues have to be explicitly marked as such somewhere in scope for the argument inference to trigger.That's also how it works in JavaScript and D with the
withkeyword, technically. (and Kit The First).