[phobos] enforce() vs. assert() for range primitives
Brad Roberts
braddr at puremagic.com
Sat Aug 21 16:19:47 PDT 2010
On 8/21/2010 2:29 PM, Andrei Alexandrescu wrote:
> On 08/21/2010 01:52 PM, David Simcha wrote:
>> It seems like the consensus here is that, for range primitives, assert()
>> is the way to go. I'd like to commit the changes in time for the next
>> release, but I'd like to have Andrei's nod first b/c he's been quiet
>> throughout this discussion and he's the main designer of std.range and
>> std.algorithm.
>
> Thanks - I feel like a mobster who's being given respect :o). I thought of this
> a lot, and talked with Walter as well. Will get back with an opinion today.
>
> Andrei
The part I dislike the most is that this decision is being heavily influenced by
a dmd quality of implementation issue. Primarily, the inlinability of enforce
vs assert.
More information about the phobos
mailing list