effect icon indicating copy to clipboard operation
effect copied to clipboard

From Discord: Proposed Do Notation Syntax: `bindAll` with Unbounded Concurrency

Open effect-bot opened this issue 1 year ago • 0 comments

Summary

The conversation revolves around a proposed addition to the Do notation syntax in the Effect-TS ecosystem. Here are the key points:

  1. Proposal: Jesse Kelly suggests adding a bindAll function with unbounded concurrency to the Do notation syntax. The idea is to allow multiple parts of a bind() to be applied simultaneously and potentially in parallel.

  2. Correction: Michael Arnaldi points out that the initial syntax proposed by Jesse Kelly is incorrect. The corrected syntax should be:

    bindAll(() => ({ key: Effect }), { concurrency: "unbounded" })
    
  3. Acknowledgment: Jesse Kelly acknowledges the correction and explains the initial mistake was due to typing on a phone.

  4. Feasibility: Michael Arnaldi mentions that the proposed addition could probably be implemented.

Key Takeaways:

  • There is a proposal to enhance the Do notation syntax with a bindAll function that supports unbounded concurrency.
  • The correct syntax for this proposal has been clarified.
  • The proposal is considered feasible and could potentially be added to the Effect-TS ecosystem.

Discord thread

https://discord.com/channels/795981131316985866/1275004158021210113

effect-bot avatar Aug 19 '24 08:08 effect-bot