Login
You're viewing the ruby.social public feed.
  • Nov 26, 2026, 1:52 AM

    To the person who decided it was a good idea to make self and Self (lowercase s versus capital S) features of Rust: I hope all your clothes always feel clammy and slightly uncomfortable, no matter what you do.

    💬 1🔄 0⭐ 1

Replies

  • Nov 26, 2026, 1:57 AM

    @alexhall They should've just made Rust case-insensitive, like Visual Basic!
    (This is a joke, but I get your frustration 100% :D)

    💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 26, 2026, 2:13 AM

    @alexhall There's `self` with a lowercase S, which is typically the name of the first parameter in instance methods. And then there's `Self` with a capital S, which you import from the `typing` module and use as a type annotation.

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0