challenge: implement the max function

Andrei Alexandrescu (See Website For Email) SeeWebsiteForEmail at erdani.org
Mon Jan 22 15:28:48 PST 2007


John Reimer wrote:
> On Mon, 22 Jan 2007 22:53:39 +0000, Luís Marques wrote:
> 
>> Andrei Alexandrescu (See Website For Email) wrote:
>>> Here's a simple challenge: implement the max function. Requirements:
>> This is a very good challenge. I'm glad you started this thread.
>>
>> Also, let's have some more of them down the line. It would be great if 
>> the conclusions were noted, to serve as a kind of language benchmark. 
>> Something to remind people of how much some simple things could still be 
>> better.
>>
>> Luís
> 
> 
> Oh?  Is D now mature enough to initiate the GotW system?  That didn't take
> long. ;D

I think that's a great idea, so everybody feel free to post more challenges.

I think today's D lack of expressiveness in expressing max is a telling 
sign of its clumsiness at dealing with more advanced stuff. While I was 
implementing max for C++, for every single roadblock in the way, I could 
find many more places that were harmed.


Andrei



More information about the Digitalmars-d mailing list