Skip to contentSkip to conversation

Possible solution for min()/max() war

IDEA+RFC Martin Knoblauch 1 participant 1 message Aug 31, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines

Re: [IDEA+RFC] Possible solution for min()/max() war

From: Linus Torvalds ([email protected])
Date: Mon Aug 27 2001 - 23:59:41 EST

Quoted 8 lines

There were a few alternatives that we looked at (or rather, David implemented, and I ended up rejecting due to various reasons), but they all boiled down to "how do we sanely generate min/max functions while at the same time forcing people to understand the types in question". Some of the intermediate patches had the type in the macro name, ie things like "min_uint()" and "min_slong()". The final version (ie the one in 2.4.9) was deemed to be the most flexible.

Reading the whole (entertaining) thread my question is: couldn't the
min/max change wait until 2.5? It seems to "break" some code and that should not happen in a "stable" stream?

Martin

Signature · 5 lines
------------------------------------------------------------------
Martin Knoblauch         |    email:  [email protected]
TeraPort GmbH            |    Phone:  +49-89-510857-309
C+ITS                    |    Fax:    +49-89-510857-111
http://www.teraport.de   |    Mobile: +49-170-4904759