News for hackers. Stuff that matters.
Re:Why Julia by fanf2 on Saturday February 23, 2019 @01:43PM (#19234816)
Multiple dispatch has to be coded by hand in Python, it isn’t a feature of the language.
Re:Why Julia by jahewson on Saturday February 23, 2019 @03:30PM (#19235299)
Python 3.7 added the ability to use type annotations with the @functools.singledispatch decorator which lets you write functions in a multi-dispatch manner.
Re:Why Julia by malmaud on Saturday February 23, 2019 @04:28PM (#19235584)
As the name suggests, that lets you write functions in a single-dispatch manner. That is different from multiple-dispatch.
Re:Why Julia by sametmax on Saturday February 23, 2019 @02:21PM (#19235009)
Sorry you are right. We only have single dispatch built in. I never had the use case for more so I confused them.