Skip to content

Private types #27

@saleynik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Ongoing

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions