← Back to context

Comment by sbrother

5 hours ago

I was about to say "what, we've had records for decades" but then I read the changelog.

Interesting. I wonder if there a world where Elixir starts compiling maps to "native records"?

Probably going to be replacement rather than direct recompilement of structs. I imagine all sorts of corner cases are lurking around if you swap implementation around, e.g. if someone force-pushed unknown key into a struct at runtime. Would be nice to keep current struct syntax though with the only difference in declaration