Echo JS 0.11.0

<~>

MaxArt comments

MaxArt 3343 days ago. link 1 point ▲ ▼
I meant it should be *state*less, not *statue*less.
It was a silly way to report a typo.
MaxArt 3347 days ago. link 2 points ▲ ▼
It's worth mentioning that they're not called padLeft and padRight because that would be confusing for strings written from right to left (there's an Unicode code point that marks the text direction, U+200F).
MaxArt 3350 days ago. link 2 points ▲ ▼
It means that `import x from "y"` is normally a syntax error in Node. But it seems that just requiring @std/esm makes the magic happening.
MaxArt 3351 days ago. link 2 points ▲ ▼
It's impressive how simply requiring a module introduces *new syntax* in Node. I didn't know it was possible.
MaxArt 3352 days ago. link 1 point ▲ ▼
WhitestormJS has been linked on EchoJS several times already. It's a very well done framework, but is there anything new or it's just spamming?
MaxArt 3352 days ago. link 3 points ▲ ▼
Glad you're back. After an improved promise support, now Node has async/await too, which makes everything even sweeter (also, in Node 8.x the performance of promises improved dramatically - not as fast as Bluebird but getting there).

I don't get why so many developers struggled with the async nature of JavaScript, but I guess you're in good company after all.
MaxArt 3353 days ago. link 3 points ▲ ▼
Again this post? Again with the title different from the original?!
Stop spamming this off-topic crap!
MaxArt 3356 days ago. link 1 point ▲ ▼
> The return statement ends function execution

That's not correct in some edge cases. Consider the following:

function foo() {
  try { 
    console.log("foo"); 
    return 0;
  } finally {
    console.log("bar");
  }
}

When executed, it will print both "foo" and "bar".

Also worth mentioning that a return statement inside the finally branch with override any previous one.
MaxArt 3357 days ago. link 1 point ▲ ▼
Interesting list of detection techniques.

It's not really clear how robust they are, though. Not even the last one.
[more]