Re:Git's list of banned C functions
by UncleMeat on Thursday March 04, 2021 @06:34PM
(#26350060)
An old grad school connection of mine wrote a formal semantics for ES5 and couldn't explain what "with" did in words.
[ Parent
| on HN ]
This is JavaScript, so there are probably tons of weird edge cases, but basically, within a with (expr) { … } block, everything defined on expr is put in scope:
with (Math) with (console) log(PI)
It reminds me a bit of Clojure's doto.