Record swizzling #331
LightAndLight
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Swizzling (Wikipedia)
x.{ c, b, a }
would desugar to
This feature lets you select subsets of a record.
It's not as useful as in graphics programming because record field order doesn't matter. I just think it looks nice.
Beta Was this translation helpful? Give feedback.
All reactions