[erlang-questions] inline specs

Anthony Ramine n.oxyde@REDACTED
Sat Feb 9 13:59:58 CET 2013


No.

-- 
Anthony Ramine

Le 9 févr. 2013 à 13:41, Jan Vincent Liwanag a écrit :

> Is there any way wherein instead of typing:
> 
> -spec add(X::number(), Y::number()) -> number().
> add(X, Y) ->
> 	X + Y.
> 
> I can just have it inline and do:
> 
> add(X::number(), Y::number()) :: number() ->
> 	X + Y.
> 
> Jan Vincent Liwanag
> jvliwanag@REDACTED



More information about the erlang-questions mailing list