Hi, 

How do package developers write code that is specific to different julia 
versions? 

For example, is anything like this:
if VERSION < v"0.5-dev"
    f(x) = code_that_runs_on_v0.4()
else
    f(x) = code_that_runs_on_v0.5()
end
recommended or is there a better way? 

My use case is a generated function that builds SubArrays. Between v0.4.* 
and v0.5, the last parameter changed so I need to have code that builds the 
correct code in different versions. 

Thanks, 

Davide

Reply via email to