Adding TypedStruct to Core Elixir #11
ericridgeway
started this conversation in
General
Replies: 0 comments
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.
-
Has anyone ever discussed adding this to Elixir by default?
This library is just such an incredible improvement over the current Elixir version of having to duplicate every field name 3 times
Not only does the current "idiomatic" Elixir way leave all the usual un-DRY problems of harder-to-maintain and easier-to-create-bugs... it's also MUCH less readable for newcomers trying to determine at a glance all the possible fields, which are required, what defaults exist, etc.
I love Elixir but TypedStruct's fantastic improvements solve such a large problem in the core library. Is there any way to suggest to the devs that this become the new idiomatic solution?
Beta Was this translation helpful? Give feedback.
All reactions