Understanding object-oriented programming in Julia – Inheritance (part 2) | The New Phalls
I know this a huge shift in expectations, but once you give up on dot-notation and get used to working this way, it is immensely freeing. While traditional OO has taught that functions are part of the object's data, Julia rejects that notion in favor of a more functional style, where functions are something that you do to data — but that what you do to the data is still allowed to depend upon the type of that data, like in traditional OO.
Tue Nov 28 04:50:02 2017 - permalink -
toring function pointers in a type as you show here does make sense if that function is part of the data for that instance, such as a callback. But is unnecessary if that function definition is related only to the type of the object.)