Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to [email protected]English • 2 years ago

The Tragic Death of Inheritance

avivcarmi.com

message-square
52
fedilink
  • cross-posted to:
  • [email protected]
99
external-link

The Tragic Death of Inheritance

avivcarmi.com

@[email protected] to [email protected]English • 2 years ago
message-square
52
fedilink
  • cross-posted to:
  • [email protected]
This is a story about how I gradually fell in love with composition
  • @[email protected]
    link
    fedilink
    English
    1•2 years ago

    Thanks for the explanation! I haven’t worked with Rust before, would these traits be an equivalent of C# interfaces?

    • @[email protected]OP
      link
      fedilink
      2•2 years ago

      Traits are similar to an interface, but with some differences. Here is a comparison with Java interfaces https://stackoverflow.com/a/69485860

[email protected]

[email protected]
Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



  • 30 users / day
  • 113 users / week
  • 396 users / month
  • 1.77K users / 6 months
  • 3 subscribers
  • 2.35K Posts
  • 35.1K Comments
  • Modlog
  • mods:
  • snowe
  • Ategon
  • @[email protected]
  • @[email protected]
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org