Playing with new React API ideas this weekend. It’s interesting how my critiques largely center around what will feel intuitive to people at a first glance. What will feel weird?
Part of it is that once you've been doing compat for a while, things become "obvious", but new projects have to re-learn what you need to do to make something open for future extension.
-
-
Boring example: Rust enums require exhaustive matching, but this means that if you add a new variant, you break downstreams. The #[non_exhaustive] attribute requires downstreams to explicitly handle the `_` case, which avoids some future breakage.
-
Link: https://github.com/rust-lang/rust/issues/44109 … It's the kind of thing that you can sort of see instantly once you've done it for a while, but explaining it to someone ahead of time seems so darn abstract.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
)