Hacker News new | past | comments | ask | show | jobs | submit login

You can explicitly override multiple assignment in elixir by using a carat:

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



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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: