6

When I get libraries with the using keyword I get warnings in the console on startup. How can I mitigate the problem of name clashes? I don't see library alias keyword as which is available in other programming languages.

m33lky
  • 7,055
  • 9
  • 41
  • 48

1 Answers1

9

You can use import instead. You can always alias it yourself since modules are just variables:

import DifferentialEquations
DiffEq = DifferentialEquations
const DE = DifferentialEquations # Don't know if const matters here

There's an open issue for providing import as syntactic sugar for this. https://github.com/JuliaLang/julia/issues/1255

Chris Rackauckas
  • 18,645
  • 3
  • 50
  • 81