small medium large xlarge

03 Dec 2013, 07:18
Ved Antani (2 posts)

On page 13, the example reads:

iex> 2 = a
** (MatchError) no match of right hand side value: 1

“But the third line, 2 = a, raises an error. You might have expected it to assign 2 to a, as that would make the match succeed..” - I think this text is wrong. Most language do not assign a symbol “a” to a constant “2” so most readers would not understand this part. There should be a better example to this

12 Dec 2013, 16:35
Dave Thomas (396 posts)

When I as “you might have expected”, I mean “having read the previous explanation, you might have expected…”

You must be logged in to comment