Today I Learned - Rocky Kev

Tagged “closure”

  1. TIL the difference between partial application and currying

    Partial application transforms a function into another function with smaller set of arguments. Currying creates nesting functions according to the number of the arguments of the function. Each function receives an argument.

  2. TIL some more examples of closure

    Five benefits- Private variables and methods. Data hiding and encapsulation. Currying. Function Factories. Performance

  3. TIL setTimeout, blocks, closure

    setTimeout is creating a closure function. More importantly, vars get yoinked by closure, where lets create their own block scope.

  4. TIL the difference of Closures in Javascript vs PHP

    I never knew PHP and Javascript closures were different.

  5. TIL Lexical Scoping

    Lexical scoping describes how a parser resolves variable names when functions are nested.

  6. TIL making Function Factories

    Functions making functions

See all tags.