4 ms·
Was "any" a reserved word in Go before? Because if not, this would be a breaking chnage for all code that uses a var named "any".
by planb 5y ago
Was "any" a reserved word in Go before? Because if not, this would be a breaking chnage for all code that uses a var named "any".
- dharmab 5y agoI just tested on the dev branch and you can still use variables named `any`. The compiler is smart enough to tell variable names and types apart. You can even create a variable named any with type any with `var any any`
- mseepgood 5y ago"any" is a new identifier, not a keyword. The usual shadowing rules apply.