Would there be any support for extending defstruct
so that
defstruct Person, name: "", age: 21
was a shortcut for
defmodule Person
defstruct name: "", age: 21
end
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/716bde83-ad19-46ad-896f-90be5493c035%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/716bde83-ad19-46ad-896f-90be5493c035%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAK%3D%2B-Tto7GDLvgY1LBX_T_xJc6MBBScX-z8_ximv_VpXaoykFA%40mail.gmail.com.
defmodule Rectangle do
defstruct Point, x: 0, y: 0
...
end
defmodule User do
defstruct Name, first: "", middle: "", last: ""
...
end
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.