Elektrine lite

← Feed

@dpom@fosstodon.org

Post #1470055

2024-03-24 11:14 UTC

@shanecelis This post is making me realize my subconscious bias toward only using a tuple struct when it has 1 field. I actually don't think I've ever constructed a tuple struct with 2+ fields.

Replies (1)

  • @dpom I only found this out because I did a refactor of `S { inner: u8 }` and replaced “inner" with “0” and almost everything still worked. But yes, I can do one or maybe even two elements in a positional struct but at three it's got to be refactored.

    Open ##1470056