Pre-processing data within a Julia structure

The function you are talking about is called a constructor for the type MyClass and this is indeed the way to approach it. Note that you have the function __init__ in python that serves the same purpose?

4 Likes