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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
current-module.foowill resolve to the.foodefined in the module that is currently being "served".current-packagewill resolve to the top levelindex.ftdof the package.Special variables:
$current-module.file-name,$main-package.FASTN-PACKAGEetc.What if the module has already defined
$current-module?Option 1: The automatic variable
$main-modulewill be shadowed by the definition.Option 2:
current-moduleis a language reserved keyword and can not be used as name. Biased towards this.Beta Was this translation helpful? Give feedback.
All reactions