Module aliasing in Julia
Julia now supports renaming with as.
Yep, you can just assign the module to a new name.
import JSON
const J = JSON
J.print(Dict("Hello, " => "World!"))
I highly recommend to use the const
because otherwise there will be a performance penalty. (With the const
, there is no performance penalty.)