News for hackers. Stuff that matters.
Re:A Critique of React Hooks by pcr910303 on Monday April 27, 2020 @09:54PM (#23002505)
> it'd be surprising in any case to encounter dynamic scope in Javascript, a language which does not even support it.

Doesn't matter much, but just b.c. it's interesting: JavaScript actually does support limited dynamic scoping - `this` is scoped dynamically like in usual Lisps, and there's a with statement[0] that acts somewhat similar with `let` in Lisp.

[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Re:A Critique of React Hooks by desert_boi on Monday April 27, 2020 @11:44PM (#23003126)
`with` is not allowed in strict mode (from ES5) and with ES modules (which imply strict). It's a bit of a relic.