comma vs andalso
Joel Reymont
joelr1@REDACTED
Mon Jul 6 13:13:04 CEST 2009
I noticed that inets code uses
foo(...) when Condition1 andalso Condition2 -> ...
Is the comma deprecated? For example, why not
foo(...) when Condition1, Condition2 -> ...
A related pet peeve of mine is that the following does not properly
indent in the latest Emacs mode
handle_info({tcp, Socket, Bin}, State)
when State#state.transport /= undefined,
State#state.socket == Socket ->
...
I have to manually insert spaces to align State#state... above and
using andalso above does not help either.
Thanks, Joel
---
Mac hacker with a performance bent
http://www.linkedin.com/in/joelreymont
More information about the erlang-questions
mailing list