[erlang-questions] Specs for optional callbacks (try 2)

Anthony Ramine n.oxyde@REDACTED
Thu Sep 25 12:26:29 CEST 2014


I prefer the second option 1, because an optional_callback attribute with special syntax means that we need yet again to increase the surface of the hack between erl_scan and erl_parse:

	https://github.com/erlang/otp/blob/maint/lib/stdlib/src/erl_parse.yrl#L575-L588

Le 24 sept. 2014 à 23:04, Kostis Sagonas <kostis@REDACTED> a écrit :

> %%----- option 1 -------
> 
> -callback foo(...) -> ...
> -callback bar(...) -> ...
> -callback baz(...) -> ...
> -callback boo(...) -> ...
> 
> -optional_callback([baz/3, boo/17]).




More information about the erlang-questions mailing list