[erlang-questions] Proposal for -warning() directive

Jayson Vantuyl kagato@REDACTED
Fri Sep 4 11:12:34 CEST 2009

So it does.  Gotta love Erlang.  It's got so many nooks and crannies.   
Randomly in that vein, if anyone can explain to me how to use the sofs  
module, I'd appreciate it.  :-D

On Sep 4, 2009, at 2:08 AM, Attila Rajmund Nohl wrote:

> 2009/9/4, Jayson Vantuyl <kagato@REDACTED>:
>> I've had a case where this would have been useful.  Not to have a
>> directive explosion, I might also recommend -deprecated().  In  
>> fact, I
>> would probably find that more useful than -warning.
>> Or maybe there should be a directive more like:
>> -emit(warning,"Something bad about this module.").
>> -emit(deprecated,"This disappears next version.").
>> Or I might be overthinking it.  But I do think this functionality in
>> some form is useful.
> I suggest that you should check the regexp.erl file in the stdlib in
> OTP R13. It contains this text:
> -deprecated([sh_to_awk/1,parse/1,format_error/1,match/2,first_match/ 
> 2,matches/2]).
> -deprecated([sub/3,gsub/3,split/2]).
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org

More information about the erlang-questions mailing list