03 Dec 2013, 07:18
Generic-user-small

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_gnome_head_isolated_pragsmall

Dave Thomas (337 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