You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I would search issues first if I could), but I was wondering if coffeescript had ever entertained a syntax to make it less messy to write promises?
when using promises, it usually looks pretty messy, because you have to wrap it inside of the promises functions, and you have to 'lift' the functions.
I just made that up on the spot, just to illustrate a possible syntax. I'm not sure there needs to be a difference between ;; and || for then() and otherwise()
The text was updated successfully, but these errors were encountered:
when using promises, it usually looks pretty messy, because you have to wrap it inside of the promises functions, and you have to 'lift' the functions.
Why so ? You're only using a poor style to write them, imho. This works and is quite clear :
I was wondering if coffeescript would entertain having syntax that makes it easier.
I don't see a special syntax for promises being added. The syntax you proposed is clearly far too cryptic and would be a no-go for me (if proposed seriously).
However, we have #2762 for backcalls (which actually doesn't really help here).
(I would search issues first if I could), but I was wondering if coffeescript had ever entertained a syntax to make it less messy to write promises?
when using promises, it usually looks pretty messy, because you have to wrap it inside of the promises functions, and you have to 'lift' the functions.
I was wondering if coffeescript would entertain having syntax that makes it easier.
I just made that up on the spot, just to illustrate a possible syntax. I'm not sure there needs to be a difference between ;; and || for then() and otherwise()
The text was updated successfully, but these errors were encountered: