algae icon indicating copy to clipboard operation
algae copied to clipboard

Parameterized type for `Algae.Maybe`

Open neysofu opened this issue 5 years ago • 0 comments

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?

neysofu avatar May 02 '20 12:05 neysofu