On inheritance and why it's good Rust doesn't have it

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • rfcs

    RFCs for changes to Rust

  • There's also an open issue: https://github.com/rust-lang/rfcs/issues/349

  • protoc-gen-star

    protoc plugin library for efficient proto-based code generation (by lyft)

  • The project, protoc-gen-star, uses embedding to provide base implementations of interfaces.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • reflex

    Interactive programs without callbacks or side-effects. Functional Reactive Programming (FRP) uses composable events and time-varying values to describe interactive systems as pure functions. Just like other pure functional code, functional reactive code is easier to get right on the first try, maintain, and reuse. (by reflex-frp)

  • There's other people around here who would like to know your opinion about these GUI frameworks! I haven't written a GUI in Rust personally, but my favorite GUI framework is not at all OOP: https://reflex-frp.org/

  • rust-delegate

    Rust method delegation with less boilerplate

  • Ah, that answers the first question, as to how inheritance is superior to manual delegation. By the way, this crate seems to do a good job of supporting delegation: https://crates.io/crates/delegate. I have nothing against this in principle.

  • areweguiyet

    A website built for the Rust community

  • You still haven't said anything about why those existing frameworks don't count. Again, they are used in production and do exactly what a gui framework is supposed to do. Sure they may not have all the features of the frameworks that have existed a decade before rust even existed but the issue is time not rust itself. They very clearly can be used to build complex UI without inheritance. Since you mentioned it, you should probably actually look at it https://areweguiyet.com/ the page clearly says that GUI frameworks do exist in rust.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts