Y
Hacker News
new
|
ask
|
show
|
jobs
by
meepmorp
1041 days 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.
2 comments
earthboundkid
1041 days ago
This is not theoretical: Python broke a lot of async packages when they made “async” a keyword!
link
crickey
1041 days ago
I 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
link