allow attributes & modifiers on a tuples fields #1149
Unanswered
lucasmeijer
asked this question in
General
Replies: 2 comments
-
What would that compile to? Tuples use the And even with #1147, you would need a version of |
Beta Was this translation helpful? Give feedback.
0 replies
-
@lucasmeijer The Records feature would give you more flexibility, it's not going to be tuples in anyway but you could at least put attributes on members but that's the future. :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We'd love to be able to write the following code:
struct transform { public float x; }
struct rigidbody { public float x; }
In the same vain, we also have some attributes we'd love to be able to place:
I realize we can make an ad-hoc struct, and put the readonly modifier or attribute on there, but it would be amazing to be able to use the concise new tuple syntax.
Beta Was this translation helpful? Give feedback.
All reactions