Movatterモバイル変換


[0]ホーム

URL:


[Python-ideas] More classical for-loop

Mikhail Vmikhailwas at gmail.com
Sat Feb 18 02:29:27 EST 2017


On 18 February 2017 at 04:13, Joao S. O. Bueno <jsbueno at python.org.br> wrote:> You can still use range.Yes thats what I do, see my proposal> 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.>> "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.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?> it leads to readability lossWhat exactly are you talking about?> most Python code these days is read in> a tool that does syntax highlightingYou suppose I don't know about it?Then you are extremely underestimating me.Mikhail


More information about the Python-ideasmailing list

[8]ページ先頭

©2009-2026 Movatter.jp