Is there a “best practice” for defining the return type of for example a file reading function?
There used to be the option to explicitly define a parametric type of a function, something like read_file{Float64}(....)
upon which I would then use the specified type as the type of the returned value(s).
From what I understand this is now only possible related to defining types? This made it so now I changed all these kind of functions to `read_file(filename, T=Float32) so that users can explicitly change the return type if they want. This feels clunky though, is there a better way?