2 of them are forms of brevity. To me the whole picture is important. And the context as well. Individual aspect becomes more important when it feels to be an outlier. I.e. In 1 line one can create a dictionary, initialise it with reasonable keys and 2-values tuples and find the key of the maximum of tuple sums… Elegantly. But one needs 3 lines of code to resolve default value. This is an exaggeration, but serves to convey my point. But again, this is not about this individual case. This thread has started from new dict.get method, and not by me. I am just trying to see what is the common factor as similar problems have been bothering me too. To me by now, it is about custom user expressions. —Nothing ever dies, just enters the state of deferred evaluation— Dg
On 24 Jul 2023, at 18:17, Chris Angelico <rosuav@gmail.com> wrote:
On Tue, 25 Jul 2023 at 01:03, Dom Grigonis <dom.grigonis@gmail.com> wrote:
I think what would be nice to have is a set of dimensions that are deemed to be of importance when deciding on a language constructs. plot(dim1, dim2, dim3) dim1 - number of lines dim2 - number of terms dim3 - number of operations dim4 - frequency of usage dim5 - ...
Don't think I fully understand, but aren't three out of those four just different forms of brevity? Is that really so important to you?
ChrisA _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/6RF4PM... Code of Conduct: http://python.org/psf/codeofconduct/