current-module
/ current-package
#1617
amitu
started this conversation in
Ideas & RFCs
Replies: 1 comment 1 reply
-
What if we introduce a type called
If Both |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
current-module.foo
will resolve to the.foo
defined in the module that is currently being "served".current-package
will resolve to the top levelindex.ftd
of the package.Special variables:
$current-module.file-name
,$main-package.FASTN-PACKAGE
etc.What if the module has already defined
$current-module
?Option 1: The automatic variable
$main-module
will be shadowed by the definition.Option 2:
current-module
is a language reserved keyword and can not be used as name. Biased towards this.Beta Was this translation helpful? Give feedback.
All reactions