4 ms·
I think Python-style implicit kw-args are a mistake. It means that caller can depend on the name of your function parameters and you can't change them without b
by BruceForth 15y ago
I think Python-style implicit kw-args are a mistake. It means that caller can depend on the name of your function parameters and you can't change them without breaking existing code, which may not be yours. Explicit kw-args, where the names of params are explicitly advertised as part of the interface of the function, are a fine idea OTOH, and should be in every language.
- akkartik 15y agoUpvoted. We'll have to agree to disagree on this. I don't see why the number and semantics of arguments can be part of the interface but it's bad for the name to be. Also, wart is like arc in that it's utterly unconcerned about backwards compatibility. It's not meant for building large edifices. That doesn't mean you can't build webapps in it. It does mean that you better write lots of unit tests.