miniblog.

← Back to all posts
256
This is really neat: an online collection of programs that can pass the type checker but fail at runtime, in a bunch of languages (Java, Scala, OCaml, Haskell, Rust): https://counterexamples.org/runtime-misinformation.html It also discusses the design tradeoffs that led to these behaviours.

6 Comments

@wilfredh The tortoise and the record-player♥
@wilfredh not really hard to come up with code that does this. It's usually type assertions or null pointers
@wilfredh i see no mention of rust?
@guenther @wilfredh Ah right. This site's interface hasn't been adapted to mobile very well. Which is understandable, not sure how it could be... Hmm... Maybe if instead of just left and right arrows at the bottom, the right arrow said "continue"
@faun @wilfredh by the way, the site's interface is mdBook, Rust's tool for any documentation that isn't api docs https://github.com/rust-lang/mdbook