Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

What's the correct way to including functions that only got introduce from a certain version of Julia?

$
0
0

I want to support all LTS Julia versions which is currently 1.0.5. However, some functions like nonmissingtype is only introduced in 1.3

What’s the correct way to support these type of functions? Should I just check for Julia version in PacakgeName.jl and then if they are not there then with something like this?

if VERSION < v"1.3.0"
  using Missings: nonmissingtype
end

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles