Hacker News new | ask | show | jobs
by lamp 4764 days ago
You can explicitly override multiple assignment in elixir by using a carat:

    a = 1  
    ^a = 1  - ok
    ^a = 2  - bad match
1 comments

I know, what I said is that multiple assignment should be explicit, when single assignment should be default. I.e. the reverse of what is in Elixr.