Node conf ar 2018.

Node conf ar 2018.

E807477655ad7125c8731065178030e2?s=128

Willian Martins

October 19, 2018
Tweet

Transcript

  1. 1.
  2. 5.

    @wmsbill this in the global scope Browser - window Web

    worker - self NodeJS - module.exports
  3. 17.

    @wmsbill How to make this predictable? Reasoning the value of

    this is tricky Function.prototype.bind Arrow function () => {}
  4. 18.
  5. 23.
  6. 27.
  7. 28.
  8. 29.
  9. 32.
  10. 33.
  11. 34.
  12. 35.

    @wmsbill Pipeline operator |> It is a syntax sugar for

    function composition It creates a way to streamline a chain of functions
  13. 37.
  14. 38.
  15. 39.
  16. 47.
  17. 49.

    @wmsbill Smart pipeline Two types bare style and topic style

    () or [] are disallowed in bare style When () or [] is needed, topic style is used # token is subject to change
  18. 51.
  19. 52.

    @wmsbill F# pipeline proposal Extends the minimal proposal with an

    await step Await step waits for the resolution of the previous step
  20. 54.
  21. 56.
  22. 57.
  23. 59.
  24. 60.

    @wmsbill What about currying? We can achieve partial application with

    curry Curry ≠ Partial application Curry returns arity n-1
  25. 61.
  26. 63.
  27. 64.

    @wmsbill Partial application proposal Creates two new parameters tokens ?

    For single argument . . . for multiple parameters (not in the initial spec anymore)
  28. 67.
  29. 70.
  30. 71.

    @wmsbill The . . . token Spread the unbound parameters

    Useful when you want to bound first or last parameter
  31. 76.

    @wmsbill Should I use all of it in production? These

    proposal are in very early stage The adoption of one, may change the syntax/semantics of other Not production ready (yet)