Re: [elixir-core:10529] Is `@__struct__` an implementation detail or a public API?

2021-11-19 Thread 'eksperimental' via elixir-lang-core
Hi Marten, You will find this PR interesting https://github.com/elixir-lang/elixir/issues/10352 Cheers, - Eks On Fri, 19 Nov 2021 14:00:40 -0800 (PST) "w...@resilia.nl" wrote: > Hi all! > > I recently needed to check what fields for a struct were defined (if > any) for a particular module, at

[elixir-core:10529] Is `@__struct__` an implementation detail or a public API?

2021-11-19 Thread w...@resilia.nl
Hi all! I recently needed to check what fields for a struct were defined (if any) for a particular module, at compile-time (potentially in the body of that module, i.e. while the module was still 'open'). *(for the curious, it's part of code that builds a runtime type-check from a typespec, see