Skip to content

Comment on Rust Any part 3: we have upcasts

Comments

I like rust because Any is inconvenient. It pushes you to implement things with static typing.

You may want to review the article linked from within the story. The original motivation here is not just to defeat the typechecker.

It begins:

Let's say you want to have a wrapper around a boxed any that you can debug.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.