Hacker News new | ask | show | jobs
by unconed 1281 days ago
My version of Greenspun's Tenth [1] is that any sufficiently complex static language contains an adhoc, informally specified, bug ridden and slow version of a dynamic "any" type.

Thx OP for providing an example.

[1] https://en.wikipedia.org/wiki/Greenspun's_tenth_rule

1 comments

Rust has a dynamic any type, `std::any::Any`.
The entire purpose of OPs thing is to give you a semblance of workable reflection so you can actually operate on said type. It requires byzantine hacks to read debug info and doesn't work on macOS.

I don't think you understand how people in dynamic languages use any types at all.