Hi Philippe,

In theory yes, in pratice no. You need to to async all the way down and
> then all the libraries (DNS, SQL, HTTP, …) need to be rewritten to be
> async.
>
> then
>    your
>       code
>           will
>               read
>                   like
>                       this
>
> and exception handling is impossible. You can make it read like sync
> code again with continuations but you still have to solve the exception
> problem. At that point you have gained what exactly besides being
> trendy? Don't get me wrong, async has it's place but not in user code.
> Node has to be async because it has only a single process and a single
> green thread but we don't.
>

Thanks for the hype busting and for clearest explanation I've yet seen on
Internet as to why Node.js is designed the way it as.
The CSP analogy is interesting - I hadn't thought of it that way.

Nick

Reply via email to