https://issues.dlang.org/show_bug.cgi?id=5660
Vladimir Panteleev changed:
What|Removed |Added
Status|NEW
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
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
http://d.puremagic.com/issues/show_bug.cgi?id=5660
Adrian Matoga e...@atari8.info changed:
What|Removed |Added
CC||e...@atari8.info
---
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
http://d.puremagic.com/issues/show_bug.cgi?id=5660
Witold Baryluk bary...@smp.if.uj.edu.pl changed:
What|Removed |Added
CC|
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()) {
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()) {
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
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,
http://d.puremagic.com/issues/show_bug.cgi?id=5660
David Simcha dsim...@yahoo.com changed:
What|Removed |Added
CC||dsim...@yahoo.com
---
11 matches
Mail list logo