Created
August 20, 2022 21:33
-
-
Save danielphan2003/1cea56ef4ad92be33fc03c616cdb1801 to your computer and use it in GitHub Desktop.
Revisions
-
danielphan2003 created this gist
Aug 20, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ { a = implicit attrs; /* implicit means it has to be accessed via `args.<implicit>` Normally you can use `f = {implicit, ...}@args: implicit`, but what if `f` is within the following function: ```nix {implicit}: { f = {implicit, ...}@args: implicit; } ``` As you can see, we can't reasonably tell the scope of `implicit`, so it is best to avoid explicit mentions unless top-level `functionArgs` and current scope's does not intersect. */ }