Hacker News new | ask | show | jobs
by travisjungroth 1060 days ago
Dot autocomplete is only one option, but I’ve never seen anything work as well for discoverability.

Just talking about it in terms of functions, you usually have at least one argument. Then you’re trying to find the right functions and remaining arguments. Single dispatch and the dot syntax support this very well! I’ve never seen it, but maybe you could do the same thing with functions. Just put in the first arg, maybe more, and then the function name.

1 comments

I’m not sure in C but in Python and JS the encapsulation can be at the module level rather than using a class. So you still get dot hunting by importing the module.