Extend function reflection #10350
Labels
error-messages
Confusing messages and better diagnostics
feature
Feature request or proposal
language
The Nix expression language; parser, interpreter, primops, evaluation, etc
Is your feature request related to a problem? Please describe.
Function reflection is an important part of everyday use of the Nix language, in
callPackage
and the module system, to improve syntax and to make strict functions lazy.However, the information is too limited, creating pitfalls that "library" code such as
callPackage
can not currently compensate.builtins.functionArgsHaveElipses
#7317Furthermore, it prevents improvements to be made without breaking compatibility:
outPath
through newmeta
argument. #8908Describe the solution you'd like
Two solutions have been already been proposed:
outPath
through newmeta
argument. #8908They could hardly be more different. Open design questions:
arg
,args
,ellipsis
,hasArgs
bindsAllAttrs
,args
,isOpen
,strict
Currently implemented by neither:
__functor
.Describe alternatives you've considered
functionArgs
throughcallPackage
and the module system.Additional context
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: