« * K @stefan-marr.de

Stefan Marr @stefan-marr.de

2026-10-08 11:09 UTC

At no point in this JavaScript program, there's a "type" check: o1 = { a: 1, b: 2 } o2 = { x: 3, b: 4 } function accessB(o) { return o.b; } accessB(o1); accessB(o2); for `o1.b + o2.b`, a good implementation would do a type check for arguments of the addition, but that's arguably a special case.

A reply in a thread.

1 likes, 0 reposts, 1 replies

3 Next post4 More from @stefan-marr.deBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup