A good chance to learn why people who write reliable software almost universally like static type systems.
Though in practice in decent languages it's much less likely you'd write your own `any -> any, any`-typed library for whatever (in this case DB interactions), and use a strongly typed one in which this would at least have been a much more explicit mistake to make.
Generally, static languages will just culturally be less likely to have this kind of invisible "T | (() -> T)" overload.
[1] https://doc.rust-lang.org/std/option/enum.Option.html#method...)