Re: Why is array.reverse a property and not a method?

2010-07-23 Thread Tomek Sowiński
Dnia 14-07-2010 o 13:32:44 Alix Pexton alix.dot.pex...@gmail.dot.com napisał(a): DuplexRange.vote++; ++vote And it's already used for with similar meaning: ...can communicate with one another in both directions. http://en.wikipedia.org/wiki/Duplex_(telecommunications) Tomek

Re: Why is array.reverse a property and not a method?

2010-07-15 Thread Tim Verweij
On 12 July 2010 21:28, bearophile bearophileh...@lycos.com wrote: Andrei Alexandrescu: sort is all but deprecated, since std.algorithm.sort exists. reverse could even more easily be implemented as a library function than sort, it should be removed as well.

Re: Why is array.reverse a property and not a method?

2010-07-14 Thread Jérôme M. Berger
Andrei Alexandrescu wrote: On 07/12/2010 02:28 PM, bearophile wrote: Andrei Alexandrescu: sort is all but deprecated, since std.algorithm.sort exists. reverse could even more easily be implemented as a library function than sort, it should be removed as well.

Re: Why is array.reverse a property and not a method?

2010-07-14 Thread Alix Pexton
On 13/07/2010 20:26, eris wrote: Nick Sabalausky Wrote: erisjvbur...@gmail.com wrote in message news:i1i4bs$1c0...@digitalmars.com... It's an improvement, but I believe the proper English prefix for something that is doubly-reflective in that sense is Duplex. It's also easier and shorter

Re: Why is array.reverse a property and not a method?

2010-07-13 Thread Lars T. Kyllingstad
On Mon, 12 Jul 2010 14:42:49 -0500, Andrei Alexandrescu wrote: I'd to do some more renaming around Phobos and figure out an approach to deprecating names that aren't longer used. I'm thinking: std.conv - std.conversion Rationale: it's a seldom typed name so shortening it is just odd

Re: Why is array.reverse a property and not a method?

2010-07-13 Thread Lars T. Kyllingstad
On Mon, 12 Jul 2010 15:57:36 -0400, bearophile wrote: std.concurrency/std.thread = std.concurrency std.thread doesn't exist anymore. It was moved into druntime and is now core.thread. (But it is still listed in the Phobos documentation menu as std.thread, which is very confusing.) -Lars

Re: Why is array.reverse a property and not a method?

2010-07-13 Thread Steven Schveighoffer
On Mon, 12 Jul 2010 19:53:00 -0400, Nick Sabalausky a...@a.a wrote: std.metastrings/std.traits = std.meta I like this a *lot*. Red flag here -- isn't the proposed keyword to replace __traits meta? If that goes through, meta isn't a valid module name. -Steve

Re: Why is array.reverse a property and not a method?

2010-07-13 Thread Steven Schveighoffer
On Mon, 12 Jul 2010 15:42:49 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: put(R, E) - putNext(R, E) Rationale: conveys the notion that there is progress in the output. Can we have E getNext(R) also for completeness :) Then an input range can be defined similarly to

Re: Why is array.reverse a property and not a method?

2010-07-13 Thread Andrei Alexandrescu
On 07/13/2010 06:23 AM, Steven Schveighoffer wrote: On Mon, 12 Jul 2010 15:42:49 -0400, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote: put(R, E) - putNext(R, E) Rationale: conveys the notion that there is progress in the output. Can we have E getNext(R) also for completeness :)

Re: Why is array.reverse a property and not a method?

2010-07-13 Thread eris
Andrei Alexandrescu Wrote: std.stdio - std.io Rationale: stuttering sucks. Absolutely. BidirectionalRange - DoublyEndedRange Rationale: bidirectional suggests something that can move *in* either direction, whereas in fact the range can be shortened from either end. It's an

Re: Why is array.reverse a property and not a method?

2010-07-13 Thread Andrei Alexandrescu
On 07/13/2010 11:30 AM, eris wrote: Andrei Alexandrescu Wrote: std.stdio - std.io Rationale: stuttering sucks. Absolutely. BidirectionalRange - DoublyEndedRange Rationale: bidirectional suggests something that can move *in* either direction, whereas in fact the range can be shortened

Re: Why is array.reverse a property and not a method?

2010-07-13 Thread KennyTM~
On Jul 14, 10 00:30, eris wrote: Andrei Alexandrescu Wrote: std.stdio - std.io Rationale: stuttering sucks. Absolutely. BidirectionalRange - DoublyEndedRange Rationale: bidirectional suggests something that can move *in* either direction, whereas in fact the range can be shortened

Re: Why is array.reverse a property and not a method?

2010-07-13 Thread Nick Sabalausky
eris jvbur...@gmail.com wrote in message news:i1i4bs$1c0...@digitalmars.com... It's an improvement, but I believe the proper English prefix for something that is doubly-reflective in that sense is Duplex. It's also easier and shorter to pronounce. Say it with me now: DuplexRange I'm a

Re: Why is array.reverse a property and not a method?

2010-07-13 Thread eris
Nick Sabalausky Wrote: eris jvbur...@gmail.com wrote in message news:i1i4bs$1c0...@digitalmars.com... It's an improvement, but I believe the proper English prefix for something that is doubly-reflective in that sense is Duplex. It's also easier and shorter to pronounce. Say it with

Why is array.reverse a property and not a method?

2010-07-12 Thread eris
Just though I'd post here on something that made me question my sanity late one night. I was working on some test code and for some reason put parens around myArray.reverse. After that the compiler complained that reverse was an unknown identifier. It took me about 30 minutes at 2am to finally

Re: Why is array.reverse a property and not a method?

2010-07-12 Thread Steven Schveighoffer
On Mon, 12 Jul 2010 12:16:32 -0400, eris jvbur...@gmail.com wrote: Just though I'd post here on something that made me question my sanity late one night. I was working on some test code and for some reason put parens around myArray.reverse. After that the compiler complained that reverse

Re: Why is array.reverse a property and not a method?

2010-07-12 Thread Andrei Alexandrescu
On 07/12/2010 11:53 AM, Steven Schveighoffer wrote: On Mon, 12 Jul 2010 12:16:32 -0400, eris jvbur...@gmail.com wrote: Just though I'd post here on something that made me question my sanity late one night. I was working on some test code and for some reason put parens around myArray.reverse.

Re: Why is array.reverse a property and not a method?

2010-07-12 Thread bearophile
Andrei Alexandrescu: sort is all but deprecated, since std.algorithm.sort exists. reverse could even more easily be implemented as a library function than sort, it should be removed as well. http://www.digitalmars.com/d/2.0/phobos/std_algorithm.html#reverse D site can enjoy a page that

Re: Why is array.reverse a property and not a method?

2010-07-12 Thread Andrei Alexandrescu
On 07/12/2010 02:28 PM, bearophile wrote: Andrei Alexandrescu: sort is all but deprecated, since std.algorithm.sort exists. reverse could even more easily be implemented as a library function than sort, it should be removed as well.

Re: Why is array.reverse a property and not a method?

2010-07-12 Thread bearophile
Andrei Alexandrescu: std.conv - std.conversion OK. std.stdio - std.io OK. put(R, E) - putNext(R, E) Uhm. I don't like this a lot. BidirectionalRange - DoublyEndedRange Acceptable. More suggestions: std.cover = std.coverage Rationale: this module is not used very often, so by Zipf

Re: Why is array.reverse a property and not a method?

2010-07-12 Thread Jonathan M Davis
On Monday, July 12, 2010 12:42:49 Andrei Alexandrescu wrote: On 07/12/2010 02:28 PM, bearophile wrote: Andrei Alexandrescu: sort is all but deprecated, since std.algorithm.sort exists. reverse could even more easily be implemented as a library function than sort, it should be removed

Re: Why is array.reverse a property and not a method?

2010-07-12 Thread Nick Sabalausky
bearophile bearophileh...@lycos.com wrote in message news:i1fs3g$2ev...@digitalmars.com... Andrei Alexandrescu: std.stdio - std.io I think this was brought up before and Walter didn't like it because he felt that putting it in the std package didn't make it blatantly obvious that it was

Re: Why is array.reverse a property and not a method?

2010-07-12 Thread Brian Schott
On 07/12/2010 12:42 PM, Andrei Alexandrescu wrote: Would this be an improvement? Yes. I approve enough to come out of lurking. (Though I do agree with Nick on DoubleEndedRange) - Brian