I was surprised to see literally invalid names in the "bad" section, e.g. "Cannot start with a digit". Why even presenting this if it's rejected by the compiler?
I was surprised to see literally invalid names in the "bad" section, e.g. "Cannot start with a digit". Why even presenting this if it's rejected by the compiler?
Author here. The answer is because I mentioned it as one of the bullet pointed hard-rules, and I wanted to include an example to illustrate it.
I wondered if you could sneak in some unicode digit but it seems to reject those too:
(I tried a few of them but not all.)The example with the dash in it confused me as well.
"Chat, generate me a table of bad Golang making practices"