[erlang-questions] [clarify] Variable binding in case clause and coding style
Andras Georgy Bekes
Mon Mar 10 17:10:49 CET 2008
> The main point is that it is error prone to rely on all branches of a
> case to set variables which are used later.
Why? The compiler helps you notice when one is missing.
Complains like this (error message, not warning):
variable 'X' unsafe in 'case' (line XXX)
> Better to make it
> explicit and let the compiler help you notice when one is missing.
For that reason I don't understand this.
More information about the erlang-questions