node = Node @
^
dg.SyntaxError: not something one can assign to
If the lines @i -= 1 and @childs.append node and swapped in order, then
Error:
node = Node @
NameError: name '@' is not defined
Problem 1:
The ability of compiler telling me the real error is affected by seemingly unrelated code.
Problem 2:
The other error 'not something one can assign to' is really confusing.
Problem 3:
A @ by itself should stand for self as is in ruby, coffeescript, livescript, etc. self shouldn't even be defined since ~> is used and thus self isn't defined in the method parameter.
FYI, I really like the language, and find it fitting to me much more than other source to python compilers. I am raising the issues to hopefully make it even better or at least raise some awareness.
Error:
If the lines
@i -= 1
and@childs.append node
and swapped in order, then Error:Problem 1: The ability of compiler telling me the real error is affected by seemingly unrelated code.
Problem 2: The other error 'not something one can assign to' is really confusing.
Problem 3: A
@
by itself should stand forself
as is in ruby, coffeescript, livescript, etc.self
shouldn't even be defined since~>
is used and thusself
isn't defined in the method parameter.FYI, I really like the language, and find it fitting to me much more than other source to python compilers. I am raising the issues to hopefully make it even better or at least raise some awareness.