Comment

Comment by gliese1337

Scala almost has this. You can declare a function with "implicit" arguments, and the compiler will look for something that matches the requirements in each calling scope and insert it automatically.

It does not, however, automatically infer the implicit parameters based on usage of implicit arguments in the function body, though.

parent gliese1337 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton