emoragaf

emoragaf

The operator needs to be one of the “elixir supported” operators right?

I think that $ would feel nice, but sadly it’s not on that list

1
Post #21
hauleth

hauleth OP

$ is unary operator, which mean that it need to be used with something on the right. And it already has a meaning (returns codepoint of the given character).

0
Post #22
emoragaf

emoragaf

isn’t ? the operator to return a character codepoint?

0
Post #23
hauleth

hauleth OP

Ahhh, yeah, in Erlang it is $, sorry. I need to check, as if $ isn’t reserved, then it should be valid name (like in JS), so it could work.

0
Post #24
— All posts loaded —