+ 1
NEZ The thread you've mentioned is completely unrelated. Garbage collection is how Go manages memory for your program. Koloroj Thanks for sharing your find. I found that not just a dot, Go will skip atmost 1 character when parsing another number from the input. For example, your program will parse both 100 and 200 from the following inputs """ 100.200 100;200 100r200 """ But this will fail "100..200". The weirdest part is that "100 200" (1 space) does not work. Whereas space separated input is accepted in most languages like C, C++ and Java Considering the many similarities I found in Go and C while learning Go, I thouht it would be like C where when the input fails, the input scanner just stops at the current character and keep reconsuming it till it is parsed into a suitable type.
9th May 2021, 5:06 AM
XXX
XXX - avatar