From efe4b690ae4de5f0adea99abb1176a64a099d433 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 14 Aug 2008 10:04:22 +0000 Subject: * Refactoring: combine functions that take an attribute set and functions that take a single argument (plain lambdas) into one AST node (Function) that contains a Pattern node describing the arguments. Current patterns are single lazy arguments (VarPat) and matching against an attribute set (AttrsPat). This refactoring allows other kinds of patterns to be added easily, such as Haskell-style @-patterns, or list pattern matching. --- src/libexpr/nixexpr.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/libexpr/nixexpr.hh') diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh index dabbaa323710..320d1dc977c5 100644 --- a/src/libexpr/nixexpr.hh +++ b/src/libexpr/nixexpr.hh @@ -21,11 +21,9 @@ MakeError(TypeError, EvalError) property of the ATerm library allows us to implement caching of normals forms efficiently. */ typedef ATerm Expr; - typedef ATerm DefaultValue; -typedef ATerm ValidValues; - typedef ATerm Pos; +typedef ATerm Pattern; /* A STL vector of ATerms. Should be used with great care since it's -- cgit 1.4.1