request for paired constants in j.l.Character
Martin Buchholz
martinrb at google.com
Wed Mar 17 14:16:36 PDT 2010
On Tue, Mar 16, 2010 at 17:14, Ulf Zibis <Ulf.Zibis at gmx.de> wrote:
> In java.lang.Character we have:
> public static final char MIN_VALUE = '\u0000';
> public static final char MAX_VALUE = '\uFFFF';
> public static final int MIN_CODE_POINT = 0x000000;
> public static final int MAX_CODE_POINT = 0X10FFFF;
> public static final int MIN_SUPPLEMENTARY_CODE_POINT = MAX_VALUE + 1;
>
> As we have MIN_CODE_POINT, which is duplicate of MIN_VALUE, IMO we
> additionally could have
> public static final int MAX_SUPPLEMENTARY_CODE_POINT = MAX_CODE_POINT;
>
> It would look better and serve plenty users expectations to find those
> MIN/MAX constants as pair.
>
> Is there anybody who agrees with me ?
I agree that the symmetry of MIN/MAX pairs
is a good thing to maintain, and so
your suggestion is slightly better than the status quo,
but ... IMO not better enough to actually
justify making any change to the Java Platform API.
Martin
More information about the jdk7-dev
mailing list