[Issue 10466] Optional "[]" syntax for std.range.iota too

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10466 Iain Buclaw changed: What|Removed |Added Priority|P2 |P4 --

[Issue 10466] Optional "[]" syntax for std.range.iota too

2013-08-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10466 --- Comment #8 from Joseph Rushton Wakeling 2013-08-31 12:37:42 PDT --- (In reply to comment #7) > I understand the general meaning of your words, and I could agree, but at the > moment there is no D code around shaped as "iota!"(]"(0.0, 1.0,

[Issue 10466] Optional "[]" syntax for std.range.iota too

2013-08-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10466 --- Comment #7 from bearophile_h...@eml.cc 2013-08-31 03:25:36 PDT --- (In reply to comment #6) > Bottom line -- iota() currently does allow FP numbers and excluding them would > be a breaking change. I understand the general meaning of your

[Issue 10466] Optional "[]" syntax for std.range.iota too

2013-08-31 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10466 Joseph Rushton Wakeling changed: What|Removed |Added CC||joseph.wakel...@webdrake.ne

[Issue 10466] Optional "[]" syntax for std.range.iota too

2013-08-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10466 --- Comment #5 from bearophile_h...@eml.cc 2013-08-25 19:46:49 PDT --- (In reply to comment #4) > Which makes iota!"[]" and iota!"()" unreliable when used with FP. :-( If you want to keep things simpler and you prefer a safer enhancement (tha

[Issue 10466] Optional "[]" syntax for std.range.iota too

2013-08-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10466 --- Comment #4 from hst...@quickfur.ath.cx 2013-08-25 19:24:55 PDT --- Hmm, iota with FP gets tricky, because, for example, 0.1 does not have an exact representation in floating-point. So if you write iota(0.0, 1.0, 0.1), it's unclear whether 1

[Issue 10466] Optional "[]" syntax for std.range.iota too

2013-08-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10466 --- Comment #3 from bearophile_h...@eml.cc 2013-08-25 15:23:48 PDT --- (In reply to comment #2) > I like this idea, though there are some corner cases we need to clarify, > namely, what should iota!"(]"(0.0, 1.0, 0.3) and iota!"()"(0.0, 1.0, 0.

[Issue 10466] Optional "[]" syntax for std.range.iota too

2013-08-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10466 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --- Co

[Issue 10466] Optional "[]" syntax for std.range.iota too

2013-07-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10466 --- Comment #1 from bearophile_h...@eml.cc 2013-07-25 17:12:00 PDT --- Another use case: auto lazy_lower_case = iota!"[]"('a', 'z'); Currently you should use this that is much less handy (and it doesn't work for other reasons): iota('a', '{'