On Wed, 12 Oct 2016 20:03:59 +0200
José Valim <
jose....@plataformatec.com.br> wrote:
> The record/2 macro is defined in the Record module so I would keep things
> contained in the Record module and not link it to in typespecs, specially
> because it is a regular Elixir macro and not a typespec construct.
>
>
>
>
www.plataformatec.com.br
> Skype: jv.ptec
> Founder and Director of R&D
>
> On Wed, Oct 12, 2016 at 7:46 PM, eksperimental <
eksper...@autistici.org>
> wrote:
>
> > Hi,
> > I'm reviewing some documentation and I found this,
> >
> > ## Types
> >
> > Types can be defined for tuples with the `record/2` macro (only
> > available in
> > typespecs). This macro will expand to a tuple as seen in the example
> > below:
> >
> > defmodule MyModule do
> > require Record
> > Record.defrecord :user, name: "john", age: 25
> >
> > @type user :: record(:user, name: String.t, age: integer)
> > # expands to: "@type user :: {:user, String.t, integer}"
> > end
> >
> >
> > And the Typespecs page has no mentiong about this record/2 macro.
> > should we add it there?
> >
> > --
> > 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