6 ms·
This also allows one to pass parameters to `foo.init()`, something you cannot do with naked imports.
by BoppreH 2y ago
This also allows one to pass parameters to `foo.init()`, something you cannot do with naked imports.
- Joker_vD 2y agoimport foo(42, FULL_OF_EELS) as foo -:1:8: E0012: Initializer of module "foo" has 3 arguments, 2 were provided.
- endofreach 2y agoIn case we're still in the design phase of the language, named arguments would help around that (coupled with a good IDE)... but yeah, probably i agree with how i interpret your comment. Shouldn't be like how parent proposed imports work. Would lead to too much pain.