Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • I am bundling the values to avoid a second function call, as I need both and this function is called very often in an inner loop. What I am not satisfied with when using a name such as those you suggested is that they are not descriptive of the datetype being returned. Commented Dec 14, 2019 at 12:39
  • @AliRasimKocal better? Commented Dec 14, 2019 at 12:40
  • Yes, that's a good suggestion as a rule of thumb, however, my concern for being indicative of the data structure remains, especially for dynamically typed languages such as python. Commented Dec 14, 2019 at 12:42
  • @AliRasimKocal tuple names should not be indicative of each element, rather of the concept that brought them together. Commented Dec 14, 2019 at 12:44
  • 1
    It's not that we want them to be forced to check documentation. It's that we want the correct level of abstraction. Save element names for when you're breaking it out into the elements. And no rush with the check. Hope you get plenty of good answers. Commented Dec 14, 2019 at 12:55