Skip to content

Private types #27

Description

@saleynik

It doesn't seem to be possible to define structs with private types. E.g.:

defstruct [
  a: nil,
  b: nil
]
@typep  t :: %__MODULE__{
  a: integer,
  b: binary
}

It would be great if typedstruct had a visibility or accessor attribute to control private|public visibility.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions