[erlang-questions] Must and May convention

zxq9 zxq9@REDACTED
Thu Sep 28 12:48:23 CEST 2017


On 2017年09月28日 木曜日 04:40:04 scott ribe wrote:
> On Sep 28, 2017, at 12:14 AM, zxq9 <zxq9@REDACTED> wrote:
> > 
> > unless bangs are acceptable characters to unclude in function names (are they?). 
> 
> Yes they are. As with Lisp-dervied languages, where it's common to have ! and ?... So it's just a naming convention.

In that case, this being a mere convention, seeing

  Blah = foo!()

instead of

  Blah = foo()

actually tells me LESS than seeing

  {ok, Value} = foo()

which will have a concrete effect both at runtime AND during static analysis.

-Craig



More information about the erlang-questions mailing list