Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

namespace clashes in Julia

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.

like image 272
m33lky Avatar asked Apr 24 '17 06:04

m33lky


1 Answers

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

like image 103
Chris Rackauckas Avatar answered Oct 12 '22 23:10

Chris Rackauckas