News for hackers. Stuff that matters.
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.
Re:Git's list of banned C functions by 1f60c on Thursday March 04, 2021 @07:11PM (#26350452)
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.
Re:Git's list of banned C functions by kaba0 on Friday March 05, 2021 @11:02AM (#26358313)
Or java’s static import