Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
meepmorp
· 3y ago · 0 comments
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.
Comments
[–]
earthboundkid
3y ago
This is not theoretical: Python broke a lot of async packages when they made “async” a keyword!
[–]
crickey
3y 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