Settings

Theme

Javis.jl – Julia Animations and Visualizations

youtube.com

44 points by thecedarprince 5 years ago · 6 comments

Reader

oxinabox 5 years ago

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

  • Mageek 5 years ago

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

    • DNF2 5 years 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 5 years ago

    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