Hacker News new | ask | show | jobs
by Mageek 1777 days ago
Julia is not object-oriented. If you want to dispatch on the type of action, you include it in the method signature.
1 comments

Actually, callable structs are a common pattern in Julia, and are not in opposition to multiple dispatch.

You are probably thinking of dot-method syntax, like this

  object.action()