Settings

Theme

Javis.jl – Julia Animations and Visualizations

youtube.com

44 points by thecedarprince · 6 comments

Reader

1 thread
oxinabox

Why does Javis use `act!(object, action)` rather than making actions callable structs so you could do `action(object)` ?

  • Mageek

    Julia is not object-oriented. If you want to dispatch on the type of action, you include it in the method signature.

    • DNF2

      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

    Might make it easier to dispatch on both the object and the action? Just a wild guess.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection