nerves-project / nerves_initramfs

An initramfs for early boot handling of Nerves devices (Work in progress!)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Negative numbers throw syntax error

mattludwigs opened this issue · comments

When I use negative numbers I get a syntax error, all the patterns below will cause this to happen:

x = -1
x = - 1
-1 == -1 -> info("should print")

Does it seem there needs to be some type of special support the unary - operator?

While not the same language here is an example from early Elixir that might help give insight to this.

elixir-lang/elixir@0288203#diff-965ab781e7fd05e8335759f7261d0927R49