~/talk

Multiple dispatch

Talkat dotJS 2012 · 2012-11-30..12-01· [javascript]
slides:none on file

A JavaScript library that implements multiple dispatch by creating a generic function 'plus' then adding methods and calling it demonstrates that parameter types determine which implementation runs and that dispatch maps parameter types to methods. The claim is that multiple dispatch restores symmetry lost to single-dispatch this makes functions aware of type hierarchies and replaces visitor-pattern boilerplate with a visitor pattern as generic function and examples show it working in code and list languages that already support it.

AI-written summary · about

  1. 0:00Start
  2. 0:15What is method dispatch?
  3. 0:49Dispatch: via an object or via a function Polymorphic method: dispatch via an object
  4. 1:45More than one parameter
  5. 1:56Adding methods to a generic function
  6. 2:37Benefits of multiple dispatch
  7. 3:57Languages with multiple dispatch
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.