Skip to content

Comment on A Week with Elixirparent

Comments

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.