4 ms·
I have named a function 'foo', in current version of language. A future change makes 'foo' a keyword. My code was broken by adding a keyword.
by meepmorp 3y ago
I have named a function 'foo', in current version of language. A future change makes 'foo' a keyword. My code was broken by adding a keyword.
- earthboundkid 3y agoThis is not theoretical: Python broke a lot of async packages when they made “async” a keyword!
- crickey 3y agoI guess, some languages get around this by having a destinction between functions and keyword functions not having the () braces in the syntax. But really if ur defning functions as keywords u should just put it in the standard library