Function discovery

This has been discussed many times!

See:

We cant just use x.f like that because the syntax is already taken - there can already be an object or a function field at x.f.

The Julia alternative is methodswith(typeof(x)). It will give you methods that match args at any position.

Yes, its kind of a pain compared to OOP tab completion, one of the very few downsides of using multiple dispatch.

4 Likes