Re: [Python-ideas] Assignments in list/generator expressions

In a message of Sun, 10 Apr 2011 14:31:38 EDT, Eugene Toder writes: <snip>
I actually had something else in mind. One problem that you get whenever you extend a language 'i.e. make it more expressive' is that it now becomes possible for people to write old things they want to do in new ways. And, of course, this is what you want for the case of <whatever you want the more expressiveness for>, but it is difficult to may a syntax change that doesn't admit a whole lot of other possibilities as well. The argument I have heard around here is 'good programmers don't write unreadable code, as a matter of personal virtue'. This ignores the fact that I have to read a lot of code written by either not-so-good or not-so-virtuous programmers, but I am coming to the conclusion that the problem may be deeper than that. I now believe that some of the hard-to-read stuff I am reading is written by people who actually find this way of writing easier to read and understand than the sort I prefer. Thus I now think that 'expressiveness' is a limited human good, not an absolute one, (like health). You should want you language to be in the golden middle between 'not epressive enough' and 'too expressive'. If your language is sufficiently limited, then idioms will show up, and become widely adopted precisely because they are one of only a few ways (ideally the only way) to do it. This already pleases the people who find this way to do things readable, and those who would naturally pick a different way of doing things are stuck with it, and possibly over time and with familiarity will come to find this way readable as well. But with too much expressibility there comes a danger we will fragment into different sub-communities, those who think that syntax X is more readable than syntax Y and vice versa. There is no reason to believe that these linguistic communities will ever converge. This is the hidden cost of allowing more expressiveness in your language. Laura

Laura Creighton writes:
It's not clear to me that they find it easier to understand, only easier to write. That is, I think it would be interesting to collect a sample of each kind and see which is buggier. :-) Unfortunately, it would be hard work to do that well.

On Mon, Apr 11, 2011 at 9:08 AM, Laura Creighton <lac@openend.se> wrote:
This is certainly one of points that comes to my mind when folks are speculating as to reasons why Lisp never became more popular than it did. (There are plenty of other reason put forward of course, I just think this is one of the often overlooked possibilities). Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia

Laura Creighton writes:
It's not clear to me that they find it easier to understand, only easier to write. That is, I think it would be interesting to collect a sample of each kind and see which is buggier. :-) Unfortunately, it would be hard work to do that well.

On Mon, Apr 11, 2011 at 9:08 AM, Laura Creighton <lac@openend.se> wrote:
This is certainly one of points that comes to my mind when folks are speculating as to reasons why Lisp never became more popular than it did. (There are plenty of other reason put forward of course, I just think this is one of the often overlooked possibilities). Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia
participants (3)
-
Laura Creighton
-
Nick Coghlan
-
Stephen J. Turnbull