[Nix-dev] Need a better error report on the location of undefined	variables.
    Nicolas Pierron 
    nicolas.b.pierron at gmail.com
       
    Tue May 26 16:28:04 CEST 2009
    
    
  
On Tue, May 26, 2009 at 13:50, Eelco Dolstra <e.dolstra at tudelft.nl> wrote:
> Hi,
>
> Nicolas Pierron wrote:
>
>> Currently, when you add a with statement at the top of your nix
>> expression, this means that you will spend much more time at finding
>> misspelled variables.
>
> Hm yes, the error message is not very good.  So maybe we should add position
> information to variables.  The only downside is that it reduces maximal sharing
> / normal form caching in the evaluator.
Or at least show the location of the attribute which contains the
undefined variable.  This will preserve the maximal sharing as it is
today.
-- 
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron
- If you are doing something twice then you should try to do it once.
    
    
More information about the nix-dev
mailing list