Tiered dispatch algebra

Perhaps this comment belongs more in the aforementioned discussion, but when learning Julia I was surprised and somewhat concerned that the method table is global. Code that doesn’t depend in any way on my module doesn’t seem to have any good reason to be able to see the methods that my module introduces. So it seems like it could be beneficial to somehow give methods a lexical scope, but I’ll admit I haven’t thought through how this would really work.

3 Likes