Re: Ranges and Exception handling PR 2724

2014-12-27 Thread Robert burner Schadek via Digitalmars-d
On Saturday, 15 November 2014 at 01:43:07 UTC, Robert burner Schadek wrote: This PR https://github.com/D-Programming-Language/phobos/pull/2724 adds an generic way of handling Exception in Range processing. quickfur and Dicebot ask me to start a thread here so the concept could be discussed.

Re: Ranges and Exception handling PR 2724

2014-12-27 Thread Tobias Pankrath via Digitalmars-d
On Saturday, 27 December 2014 at 22:14:41 UTC, Robert burner Schadek wrote: On Saturday, 15 November 2014 at 01:43:07 UTC, Robert burner Schadek wrote: This PR https://github.com/D-Programming-Language/phobos/pull/2724 adds an generic way of handling Exception in Range processing. quickfur

Re: Ranges and Exception handling PR 2724

2014-12-27 Thread Mike Parker via Digitalmars-d
On 12/28/2014 7:49 AM, Tobias Pankrath wrote: On Saturday, 27 December 2014 at 22:14:41 UTC, Robert burner Schadek wrote: On Saturday, 15 November 2014 at 01:43:07 UTC, Robert burner Schadek wrote: This PR https://github.com/D-Programming-Language/phobos/pull/2724 adds an generic way of

Re: Ranges and Exception handling PR 2724

2014-11-24 Thread Jonathan Marler via Digitalmars-d
On Friday, 21 November 2014 at 16:57:29 UTC, Marco Leise wrote: Am Fri, 21 Nov 2014 08:56:17 + schrieb Jonathan Marler johnnymar...@gmail.com: I actually ran into this problem today when using the dirEntries function in std.file. I was attempting to iterate all the files on my C drive

Re: Ranges and Exception handling PR 2724

2014-11-24 Thread Jonathan Marler via Digitalmars-d
On Tuesday, 25 November 2014 at 00:46:11 UTC, Jonathan Marler wrote: On Friday, 21 November 2014 at 16:57:29 UTC, Marco Leise wrote: Am Fri, 21 Nov 2014 08:56:17 + schrieb Jonathan Marler johnnymar...@gmail.com: I actually ran into this problem today when using the dirEntries function in

Re: Ranges and Exception handling PR 2724

2014-11-21 Thread Jonathan Marler via Digitalmars-d
On Saturday, 15 November 2014 at 01:43:07 UTC, Robert burner Schadek wrote: This PR https://github.com/D-Programming-Language/phobos/pull/2724 adds an generic way of handling Exception in Range processing. quickfur and Dicebot ask me to start a thread here so the concept could be discussed.

Re: Ranges and Exception handling PR 2724

2014-11-21 Thread Robert burner Schadek via Digitalmars-d
Your idea designs an idiom on how to let ranges handle exceptions. My PR is about how to handle exceptions thrown by ranges. Both sort-of do the same thing but at different points. Your design idiom needs source access (needs to be programmed in). Mine can be bolted on later (an additional

Re: Ranges and Exception handling PR 2724

2014-11-21 Thread Marco Leise via Digitalmars-d
Am Fri, 21 Nov 2014 08:56:17 + schrieb Jonathan Marler johnnymar...@gmail.com: I actually ran into this problem today when using the dirEntries function in std.file. I was attempting to iterate all the files on my C drive and I got an Access Denied error which caused the DirIterator

Re: Ranges and Exception handling PR 2724

2014-11-20 Thread Robert burner Schadek via Digitalmars-d
On Wednesday, 19 November 2014 at 05:49:55 UTC, H. S. Teoh via Digitalmars-d w From what I understand, this PR is proposing to add a range wrapper that catches exceptions thrown from range primitives and passes them to a user-specified handler. Seems to be a promising idea, but it's probably

Re: Ranges and Exception handling PR 2724

2014-11-20 Thread H. S. Teoh via Digitalmars-d
On Thu, Nov 20, 2014 at 11:57:41AM +, Robert burner Schadek via Digitalmars-d wrote: On Wednesday, 19 November 2014 at 05:49:55 UTC, H. S. Teoh via Digitalmars-d w From what I understand, this PR is proposing to add a range wrapper that catches exceptions thrown from range primitives and

Re: Ranges and Exception handling PR 2724

2014-11-20 Thread Sean Kelly via Digitalmars-d
On Saturday, 15 November 2014 at 01:43:07 UTC, Robert burner Schadek wrote: This PR https://github.com/D-Programming-Language/phobos/pull/2724 adds an generic way of handling Exception in Range processing. quickfur and Dicebot ask me to start a thread here so the concept could be discussed.

Re: Ranges and Exception handling PR 2724

2014-11-20 Thread bearophile via Digitalmars-d
H. S. Teoh: Unfortunately, it looks like people are more interested in arguing about signed vs. unsigned instead of reviewing new Phobos features. *sigh* :-( Both kind of discussions are important. Regarding this Phobos feature, I suggested something less general and more efficient (no

Re: Ranges and Exception handling PR 2724

2014-11-20 Thread Robert burner Schadek via Digitalmars-d
hm, the thing is there are ranges that will throw, making them nothrow is of course a very good idea, but some will still throw map(a = throw ...) This handleXXX ranges deal with them.

Re: Ranges and Exception handling PR 2724

2014-11-18 Thread H. S. Teoh via Digitalmars-d
On Sat, Nov 15, 2014 at 01:43:05AM +, Robert burner Schadek via Digitalmars-d wrote: This PR https://github.com/D-Programming-Language/phobos/pull/2724 adds an generic way of handling Exception in Range processing. quickfur and Dicebot ask me to start a thread here so the concept could be

Ranges and Exception handling PR 2724

2014-11-14 Thread Robert burner Schadek via Digitalmars-d
This PR https://github.com/D-Programming-Language/phobos/pull/2724 adds an generic way of handling Exception in Range processing. quickfur and Dicebot ask me to start a thread here so the concept could be discussed.