Fwd: New suggested built in keyword: do
8 Jun
2018
8 Jun
'18
5:12 p.m.
I think that the keyword do would solve problems that occur when people want a simple way to run a command over an iterable but they dont want to store the data. example: do print(x) for x in range(50) --------- this above command will not return anything and will just run the command that is underlined over a generator. thus running a command comprehension or do comprehension. this will stop people from using the list comprehension to run an iterable through a function when they dont want to return anything. ( Specifically if memory is something we would want to conserve, such as in multithreaded web applications. )
2140
Age (days ago)
2141
Last active (days ago)
8 comments
9 participants
participants (9)
-
Greg Ewing
-
Jacco van Dorp
-
Jamie Willis
-
Jamie Willis
-
Michael Selik
-
MRAB
-
Randy Diaz
-
Steven D'Aprano
-
Todd