Conversation

As a counter-point, what language(s) would you say have "good" name lookup rules, where "good" ?= easy and convenient for the programmer as well as the implementer?
1
I should note that lots of it was inspired be ' Unbound library - it was super helpful in figuring this stuff out! Even if I was going to go with a visitor-style approach, I'd want to see if I could still specify the scoping using type combinators - it's really neat!
1
2
Show replies
Replying to
Unfortunately there are several additional name lookup dimensions in many languages that don’t even have particularly clear concepts of a binding scope. Like they fade in or out depending on types & overloads & extension structure & order & ambiguity & goodness knows what else.
1
1
Indeed. That's where stuff really becomes fun and messy. Kind of almost want to do some of that stuff in the elaborator? But then you also need to think of how you want to do support for incrementalism and editors...
1
Show replies