[erlang-questions] Orelse and andalso as short-hand for case

zxq9@REDACTED zxq9@REDACTED
Fri Jul 27 01:54:24 CEST 2018


On 2018年7月25日水曜日 15時09分28秒 JST Richard O'Keefe wrote:
> On 25 July 2018 at 00:06, Nathaniel Waisbrot <nathaniel@REDACTED> wrote:
> 
> >  if the language hands me a tool and I see a convenient use for it, why
> > should I hold back?
> >
> 
> Out of consideration for anyone reading the code in the future,
> including yourself.  The language hands you many tools; if you
> need a chisel and you *have* a chisel, why use a screwdriver?
> 
> Or as Dr Johnson put it, "Read over your compositions, and
> wherever you meet with a passage which you think is particularly
> fine, strike it out."

This painful guideline saves me much torment every time I find the fortitude to apply it.

-Craig



More information about the erlang-questions mailing list