Skip to content

Parameterized type for Algae.Maybe #64

@neysofu

Description

@neysofu

Hi!

I think it would be useful to have a parameterized type for optional entities, e.g.

@spec f(Algae.Maybe.t(String.t())) :: any
def f(opt_name) do
  # ...
end

We could simply add a @type t(x) :: ... to Algae.Maybe, but ideally defdata would take care of it. Is it possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions