[–] oxinabox 5y ago ↗ Why does Javis use `act!(object, action)` rather than making actions callable structs so you could do `action(object)` ? [–] [deleted] 5y ago ↗ (comment deleted) [–] StefanKarpinski 5y ago ↗ Might make it easier to dispatch on both the object and the action? Just a wild guess. [–] oxinabox 5y ago ↗ Right, can't to abstract callable overloads in older versions of julia [–] Mageek 5y ago ↗ Julia is not object-oriented. If you want to dispatch on the type of action, you include it in the method signature. [–] DNF2 5y ago ↗ 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()
[–] StefanKarpinski 5y ago ↗ Might make it easier to dispatch on both the object and the action? Just a wild guess. [–] oxinabox 5y ago ↗ Right, can't to abstract callable overloads in older versions of julia
[–] Mageek 5y ago ↗ Julia is not object-oriented. If you want to dispatch on the type of action, you include it in the method signature. [–] DNF2 5y ago ↗ 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()
[–] DNF2 5y ago ↗ 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()
6 comments
[ 41.1 ms ] story [ 1981 ms ] threadYou are probably thinking of dot-method syntax, like this