docs(3p/nix/libexpr): Add some comments about function calls

These were things that took me a moment to realise.
This commit is contained in:
Vincent Ambo 2020-05-23 06:44:38 +01:00
parent d27c722e9e
commit bca0e34859
2 changed files with 10 additions and 5 deletions

View file

@ -200,10 +200,11 @@ struct ExprList : Expr {
struct Formal {
Symbol name;
Expr* def;
Expr* def; // def = default, not definition
Formal(const Symbol& name, Expr* def) : name(name), def(def){};
};
// Describes structured function arguments (e.g. `{ a }: ...`)
struct Formals {
typedef std::list<Formal> Formals_;
Formals_ formals;