https://issues.dlang.org/show_bug.cgi?id=5660
Vladimir Panteleev changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
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
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 lan
http://d.puremagic.com/issues/show_bug.cgi?id=5660
Adrian Matoga changed:
What|Removed |Added
CC||e...@atari8.info
--- Comment #9 from A
http://d.puremagic.com/issues/show_bug.cgi?id=5660
Adam D. Ruppe changed:
What|Removed |Added
CC||destructiona...@gmail.com
--- Comment
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 a
http://d.puremagic.com/issues/show_bug.cgi?id=5660
Witold Baryluk changed:
What|Removed |Added
CC||bary...@smp.if.uj.edu.pl
--- Comment
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()) {
yie
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()) {
yi
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
--- 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 su
http://d.puremagic.com/issues/show_bug.cgi?id=5660
David Simcha changed:
What|Removed |Added
CC||dsim...@yahoo.com
--- Comment #1 from D
12 matches
Mail list logo