[erlang-questions] void() in type specs
Joel Reymont
joelr1@REDACTED
Fri Nov 18 16:52:41 CET 2011
Use 'ok' for functions not returning anything of interest.
See lists:foreach, for example.
On Nov 18, 2011, at 3:50 PM, Olivier BOUDEVILLE wrote:
>
> Hello Timothy,
>
> Thanks for your message. I had seen that type, but, as I understand it, it is for non-terminating functions (ex: server sitting in an infinite loop, tear-down code finishing with halt/0, or code throwing an exception, etc.), not for terminating functions whose result is not of interest (but maybe Kostis or Stavros will correct me if I am wrong).
>
> For the moment, I stick to my own void() type, and saw that at least Orber did the same thing apparently.
--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------
More information about the erlang-questions
mailing list