[Issue 5660] yield syntax sugar

2017-07-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5660 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 5660] yield syntax sugar

2014-01-07 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5660 --- Comment #10 from bearophile_h...@eml.cc 2014-01-07 18:32:09 PST --- I think a yield with an usage syntax like this (semantically similar to the Python yield) that's syntax sugar for a ForwardRange is a good and handy addition to the

[Issue 5660] yield syntax sugar

2014-01-07 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5660 --- Comment #11 from bearophile_h...@eml.cc 2014-01-07 18:39:04 PST --- See also Issue 11880 for reserving the keyword yield. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail

[Issue 5660] yield syntax sugar

2012-10-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5660 Adrian Matoga e...@atari8.info changed: What|Removed |Added CC||e...@atari8.info ---

[Issue 5660] yield syntax sugar

2012-02-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5660 --- Comment #7 from bearophile_h...@eml.cc 2012-02-15 04:24:02 PST --- (In reply to comment #6) But any way - no need to syntax sugars. This was a request for syntax sugar for opApply. No need for Fibers here (fibers are useful, but here I

[Issue 5660] yield syntax sugar

2012-02-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5660 Witold Baryluk bary...@smp.if.uj.edu.pl changed: What|Removed |Added CC|

[Issue 5660] yield syntax sugar

2011-09-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5660 --- Comment #4 from bearophile_h...@eml.cc 2011-09-12 04:58:31 PDT --- Alternative syntax (here inside the generator yield is used like the return statement): yield(int) hanoiTower() { yield(1); foreach (x; hanoiTower()) {

[Issue 5660] yield syntax sugar

2011-09-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5660 --- Comment #5 from bearophile_h...@eml.cc 2011-09-12 04:59:15 PDT --- Alternative syntax (here inside the generator yield is used like the return statement): yield(int) hanoiTower() { yield 1; foreach (x; hanoiTower()) {

[Issue 5660] yield syntax sugar

2011-08-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5660 --- Comment #2 from bearophile_h...@eml.cc 2011-08-03 04:48:48 PDT --- More programming in D shows me that syntax sugar like this one will be very useful to me: yield(int) foo() { yield(1); } So, is it possible to automatically convert

[Issue 5660] yield syntax sugar

2011-08-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5660 --- Comment #3 from bearophile_h...@eml.cc 2011-08-03 05:08:13 PDT --- Just as an example, this is Python2.6 code: def process((i, j), a, b): if i == 0: yield (a, j) if j == 0: yield (i, b) if i == a: yield (0, j) if j == b: yield (i,

[Issue 5660] yield syntax sugar

2011-02-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5660 David Simcha dsim...@yahoo.com changed: What|Removed |Added CC||dsim...@yahoo.com ---