Struct decomposer idiom #367
Closed
mihaigalos
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
It's a nice feature for sure, but as it's already in the book I'm not sure if it would make sense to write something here which wouldn't give more information about it essentially. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've seen this idiom before and thought maybe we could incorporate it into this repo:
Creating an anonymous Config object decomposes
self
into the structure fields.This essentially eliminates the need for
self.
every time we access a member variable.Beta Was this translation helpful? Give feedback.
All reactions