[erlang-questions] inline specs

Jan Vincent Liwanag <>
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



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


More information about the erlang-questions mailing list