It is so bad, that in julia functions are not first class. Instead, I would love to use scala 3 for machine learning since this is the perfect type system for such a task, but linear algebra support is not good enough.
What do you mean by "not first class"? https://docs.julialang.org/en/v1/manual/functions/#man-anony...
A function is of type ‘Function’. There is no way to define it with the type of its argument or the type of what it returns.