Multiple Dispatch

Discussions focus on the concept of multiple dispatch in programming languages, its differences from single dispatch and function overloading, and examples in languages like Julia, CLOS, Dylan, and C++ workarounds.

📉 Falling 0.5x Programming Languages
2,797
Comments
20
Years Active
5
Top Authors
#1216
Topic ID

Activity Over Time

2007
2
2008
12
2009
49
2010
86
2011
92
2012
108
2013
117
2014
162
2015
123
2016
161
2017
179
2018
156
2019
177
2020
278
2021
312
2022
239
2023
209
2024
122
2025
212
2026
1

Keywords

OO CLOS ycombinator.com IntegerCamelDecorator i.e Camelizable.new OOP CRTP mitpress.mit CamelizableRegistry dispatch multiple oop dynamic overloading function polymorphism run time compile time method

Sample Comments

ykonstant Dec 28, 2023 View on HN

I thought Julia's multiple dispatch was run-time polymorphism?

brabel Jul 21, 2021 View on HN

What would multi-dispatch do differently???

malkia May 14, 2014 View on HN

Possibly http://en.wikipedia.org/wiki/Multiple_dispatch ?

rco8786 Sep 11, 2022 View on HN

Can someone more intelligent than me explain how multiple dispatch differs from function overloading?

freemint Oct 18, 2021 View on HN

Sounds like a brilliant case for multiple-dispatch.

TurboHaskal Jul 19, 2024 View on HN

It seems to me the author just wants multiple dispatch.

klodolph Feb 14, 2022 View on HN

That sounds like single dispatch to me. Maybe I'm missing something.

PoignardAzur Sep 9, 2024 View on HN

What do you mean by "multiple dispatch"? What's an example of a multiple dispatch program?

CyberShadow May 1, 2014 View on HN

How is multiple dispatch different from function overloading, as found in C++/Pascal? Is it the same thing?

barrkel Mar 6, 2019 View on HN

It's a shortcoming of languages that don't have multiple dispatch.