Nona
Nona

Reputation: 5462

Was this ever valid Elixir syntax?

So looking at the source code in this file, I see a backwards pointing arrow like pid <- {:message, message, m}. Was that ever valid Elixir syntax? And what is the valid syntax now to make the RingOne module behave correctly when I paste it into an iex shell?

Upvotes: 1

Views: 60

Answers (1)

Dogbert
Dogbert

Reputation: 222128

Yes, the ! operator was deprecated in favor of send/2 in 2014 and removed a few days later. It's simple to fix: just change all a <- b expressions to send(a, b).

Upvotes: 3

Related Questions