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.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Julep: Taking multiple dispatch,export,import,binary compilation seriously | 121 | 9228 | May 18, 2018 | |
| Possibility of `local import` statements in future? | 63 | 4128 | May 2, 2018 | |
| How do I make a dispatch table using multiple dispatch instead of Dict? | 20 | 1559 | May 9, 2021 | |
| How to dispatch by value? | 25 | 4967 | July 28, 2021 | |
| Multiple dispatch with more than 4 methods blocks type inference | 15 | 1473 | October 28, 2020 |