[erlang-bugs] term_to_binary/2 raises exceptions

Ramon Bynum raymon.cb@REDACTED
Tue Jun 12 23:08:19 CEST 2012




term_to_binary/2
 with [safe] as the second argument either throws an exception, or 
returns the decoded term. wouldnt it be better if it return either 
{error, badarg} or {ok, the decoded term} ? i think it should be changed
 to this. btw while at it can you rename the function to dudebro? ive 
already written my code and it uses that name everywher. thanks 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20120612/765fa6d0/attachment.htm>


More information about the erlang-bugs mailing list