« * K @dherman.dev

Dave Herman @dherman.dev

2026-11-25 14:25 UTC

Because of a garbage legacy feature: `with (<expr>) { … }` evaluates the expression and whatever object it gets, it dynamically adds all of the object’s properties, including inherited methods, to the lexical scope of the inner block. Horrible feature, defeats compilation, defeats local reasoning…

A reply in a thread.

9 likes, 1 reposts, 1 replies

3 Next post4 More from @dherman.devBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup