3 ms·
Loc is a bad code metric when measuring at the scale of codebases. However, when measuring the succinctness of a language it has its place. And, contains is a
by aunty_helen 4y ago
Loc is a bad code metric when measuring at the scale of codebases. However, when measuring the succinctness of a language it has its place.
And, contains is a perfectly cromulent function to use unless there's a reason not to. At a million items it would be a bad use of contains if you were to lookup up multiple items, but modern day programming requires both knowledge of the code structure and the data.
Yes, python's type hinting is pants.
Go's goals are simplicity, python wants to be the working man's language.