3 ms·
Having read a lot of Python code that uses scientific libraries that override operators and key indexing I'll have to disagree. The result is easier to read if
by LunaSea 9y ago
Having read a lot of Python code that uses scientific libraries that override operators and key indexing I'll have to disagree.
The result is easier to read if you're familiar with it but exponentially more complicated if you're not and still learning. It creates marginally shorter code but I feel like the sacrifice of the explicitness / verbosity of a normal method / function call isn't worth it.
- goatlover 9y agoThose libraries also make it easier to write that code. The majority of people using scientific libraries will be used to mathematical and scientific notation, so the closer the programming is to that, the better for them.
- posterboy 9y ago> key indexing sure, that should come with a huge warning sign in the documentation. Edit: and as code should be self documenting, that warning sign could be an extra function, sure.