4 ms·
In the first case, maybe it's treating the '+' as string concatenation - so 3+4 is giving 34? Then it's just dropping the 5 because it can't multiply a string a
by rpeden 8y ago
In the first case, maybe it's treating the '+' as string concatenation - so 3+4 is giving 34? Then it's just dropping the 5 because it can't multiply a string and a number.
Regardless, I really like this project. :)
- tyingq 8y agoAhh, you're correct. go run main.go /dev/tty PRINT 1+2*5,"\n" ^D 12