Re: ISSUE-124: Futures / Order of parameters (was: Re: Request for JSON-LD API review)

On Wed, Apr 17, 2013 at 9:17 AM, Claus Reinke <claus.reinke@talk21.com> wrote:
> In addition, I would like to see a tiny JS language extension that
> translates something like
>
>    let xresult <- doX(...)    ...
>
> (for then-able-returning doX) to
>
>    doX(...).then( function( xresult ) { ... } )
> so that I could write my nested callbacks without pyramids of doom,
> as in other functional languages (eg, Haskell, F#).

Your suggested transformation is crazytimes, because it means that
"let" isn't introducing a new variable at all!

~TJ

Received on Wednesday, 17 April 2013 16:57:36 UTC