Giter VIP home page Giter VIP logo

Comments (4)

Libadoxon avatar Libadoxon commented on September 22, 2024 1

Thx for the explanation, this is now more clear to my.

from nixd.

inclyc avatar inclyc commented on September 22, 2024

Apparently you did not use foo in this case. What's the bug?

from nixd.

Libadoxon avatar Libadoxon commented on September 22, 2024

I don't quite understand your reply. In my example I use foo through args, foo is set to out. If I remove args. before foo I don't get this warning.

from nixd.

inclyc avatar inclyc commented on September 22, 2024

In my example I use foo through args, foo is set to out.

There is no such "use" through args. In nix language literally you use args, and select the args attribute set via the name foo.

In this code example you can write

{ ... }@args : { out = args.foo; }

If I remove args. before foo I don't get this warning.

In nix language you can write some names in { } as a part of lambda formal arguments. If you already do this, why use args to access it again? That's definitely a "dead" code. Just use foo directly and that's the usage of lambda formal arguments.

from nixd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.