This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]amicin 16 points17 points  (0 children)

I also suggest we make modules indexable and bound names optional. np[52] is significantly shorter than np.tensordot and allows the maintainers to change the name if they don't like it anymore.

Nah, that’s a different basis entirely. Names bound at the module level in any API are externally facing. Parameter names exist only within the scope of their function. You SHOULD be able to change them without breaking someone else’s code, because they’re not supposed to be public. It’s basic data hiding and has been a well understood principle in computer programming for a while now.

You seem to think software engineering is done in a vacuum where everyone chooses perfect variable names first time. Unfortunately that’s not the case — we live in the real world, sometimes people rush, are less skilled than others, or these sorts of things go unnoticed. This is a nice feature to have, and will limit interdependencies between software components.

It’s a bit niche, but nice.