Namespace conflicts in Julia

When I get libraries with a keyword using, I get warnings in the console at startup. How can I mitigate the problem of name conflicts? I do not see the library alias keyword as, which is available in other programming languages.

+4
source share
1 answer

You can use instead import. You can always use it yourself, because the modules are just variables:

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

There is an open problem to provide syntactic sugar import asfor this. https://github.com/JuliaLang/julia/issues/1255

+8
source

Source: https://habr.com/ru/post/1675489/


All Articles