[erlang-questions] [clarify] edoc: using @spec tag for a fun type
Richard Carlsson
richardc@REDACTED
Mon Jun 30 09:25:46 CEST 2008
Csaba Hoch wrote:
> if I define a fun type with @type, can I use
> it when I define a function with @spec?
>
> I mean something like this:
>
> %% @type number_fun = ((number()) -> number()).
>
> %% @spec f = number_fun()
> f(X) ->
> 2*X.
>
> But my version doesn't work.
> Is it possible to do something similar?
No, this is currently not possible. I have made a note of this and will
consider adding it in the future. Thanks.
/Richard
More information about the erlang-questions
mailing list