Message334859
A programmer want to instruct the computer to do something, without having to care about how it works.
Maybe the library could in the background convert the list to a tuple.
Like:
"foo".startswith(tuple(["food", "for", "fast"]))
But the programmer shouldn't have to worry about this. I have a list, I want to use the list. I shouldn't have to care about interpreter internals that have nothing to do with the intent of my code.
My code should clearly represent intent, not have boilerplate code or constructs to workaround interpreter internals. |
|
Date |
User |
Action |
Args |
2019-02-05 09:38:55 | Fred | set | recipients:
+ Fred, rhettinger, xtreak |
2019-02-05 09:38:53 | Fred | set | messageid: <1549359533.5.0.566162394443.issue35897@roundup.psfhosted.org> |
2019-02-05 09:38:53 | Fred | link | issue35897 messages |
2019-02-05 09:38:53 | Fred | create | |
|