People say, ‘I don’t think a language like Nix should have macros’, proving they don’t know what a macro system actually means. They think it means the C preprocessor.
But I just realized that Nix’s ‘inherit’ should be a macro. There is absolutely no reason it should be part of the core language. This inhibits syntactic processing of the language.
The ‘inherit’ statement can immediately be expanded to attribute bindings. In Pipchix I will do so and so free up much Nix code generation.





