[erlang-questions] inline specs

Jan Vincent Liwanag jvliwanag@REDACTED
Sat Feb 9 13:41:27 CET 2013


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130209/9ecfc756/attachment.htm>


More information about the erlang-questions mailing list