You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to Python, import Foo as Bar would import the Foo module in a variable named Bar, so that you would access the Foo namespace as Bar.foo. This could even be just syntactic sugar for:
import Foo
Bar = Foo
if we don't mind having Foo in the namespace too, but hiding Foo would probably be better.
Useful when you don't want to pollute the global namespace (hence don't want using) but would like a short module name for convenience.
The text was updated successfully, but these errors were encountered:
Similar to Python,
import Foo as Bar
would import theFoo
module in a variable namedBar
, so that you would access theFoo
namespace asBar.foo
. This could even be just syntactic sugar for:if we don't mind having
Foo
in the namespace too, but hidingFoo
would probably be better.Useful when you don't want to pollute the global namespace (hence don't want
using
) but would like a short module name for convenience.The text was updated successfully, but these errors were encountered: