Git Product home page Git Product logo

Comments (4)

andrew-johnson-4 avatar andrew-johnson-4 commented on June 4, 2024

Apply Explicit is formally well-defined and sound atm.

f := λ(: x X)(: y Y). x y;

from lambda-mountain.

andrew-johnson-4 avatar andrew-johnson-4 commented on June 4, 2024

Apply Implicit is just a hidden variable.

f := λ(: x X)(: y Y)(implicit z Z). x y;

f x y

reduces to

f x y z

Implicit parameters are applied "after" specialization. A visible candidate a : B - > C could become a : (ImplicitX,B) -> C.

from lambda-mountain.

andrew-johnson-4 avatar andrew-johnson-4 commented on June 4, 2024

Chain Explicit is either Cons or Apply by default before specialization.

chain := λ(: f (->(X Y)))(: x X). apply f x;
chain := λ(: l L)(: r R). Cons l r;

from lambda-mountain.

andrew-johnson-4 avatar andrew-johnson-4 commented on June 4, 2024

Chain Implicit is responsible for both implicit parameters and calling apply. There is nothing complicated about this if it is entirely mechanical. Chain Implicit is the single most direct access to the application syntax: f x calls chain implicits f x after all the sugar gets taken off.

chain := λ(implicit ctx FunctionContext)(: x X)(: y Y). (
   chain (with (ctx ctx) x) (with (ctx ctx) y)
);

from lambda-mountain.

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.