Movatterモバイル変換


[0]ホーム

URL:


[Python-ideas] More classical for-loop

Toddtoddrjen at gmail.com
Sat Feb 18 03:19:21 EST 2017


On Feb 18, 2017 02:30, "Mikhail V" <mikhailwas at gmail.com> wrote:On 18 February 2017 at 04:13, Joao S. O. Bueno <jsbueno at python.org.br>wrote:> I don't see the point in continuing this thread.How does this add to the syntax discussion?I was replying to Nicks quite vague commentswhich were supposed to be critics.There is no point discussing an idea on this mailing list if there is nochance it is going to be implemented.  You can talk about it on the generallist, as has been suggested to you before. But once an idea has beenlargely rejected, as this one has, this mailing list is no longer the rightplace for it.>> "burden to learn" - I hope you are not serious :)> No, this is serious.> You duplicate the syntax possibilities of one ot he> most basics syntactic elementsHow do you count duplicate? And what is the senseto speak about 'burden to learn' before the new syntax getapproved? If it will be the new  syntax, thenyou will need to learn the new syntax only.The existing syntax will not be removed.  It would break all python codeever written in the most fundamental way.  That is never going to happen.You want throw iterables in it, do it:for e over Sequence :I see this probably could have some ambiguity problemsbut is it such an unsolvable problem?For integers write e.g. like this:for i over 0, N :orfor i over *N :What is the problem?So anyone learning python would need to know both syntaxes to be able towork with other peoples' code.  But we would end up with two syntaxes thatdo exactly the same thing except with either an integer or two or threeintegers separated by commas, in which case they behave completelydifferently.  That will be confusing even to experienced developers.-------------- next part --------------An HTML attachment was scrubbed...URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170218/3f57914e/attachment.html>


More information about the Python-ideasmailing list

[8]ページ先頭

©2009-2026 Movatter.jp