On Friday, October 16, 2015 at 11:29:40 PM UTC-4, Forrest Curo wrote: > > Okay, this might be a good time to explain that 'Compat' package. > Evidently I do have it, because I can't Pkg.add it... How does this work? >
See the readme here: https://github.com/JuliaLang/Compat.jl The short version is that it allows you to write code using the new 0.4 names and syntaxes, while still providing compatibility for 0.3. For the most part, you're able to update your code to the new 0.4 names and simply saying `using Compat` at the top of your file will make things work on 0.3. There are some syntaxes, however, whose new form is an error on 0.3. In those cases, you can use the `@compat` macro. For example, a function definition like `f(x::Union(Int,Float64)) = 2` would become `f(x::@compat(Union{Int,Float64})) = 2`.
