commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: Fwd: [lang] [LANG-1201] Add a TimeUnit-like classes for base 2 and base 10 digital conversions (bits, bytes, KB, MB, and so on).
Date Tue, 15 Mar 2016 14:24:40 GMT
Putting both concepts on one class would be confusing and lead to bugs in
user apps IMO. Somewhat akin to getting metric and imperial quantities
mixed up and crashing a Mars lander ;-)

You have to pick a unit a stick to it.

Gary
On Mar 15, 2016 2:48 AM, "Emmanuel Bourg" <ebourg@apache.org> wrote:

> Le 14/03/2016 03:56, Gary Gregory a écrit :
> > Looking for feedback if anyone is interested...
>
> I like the idea, I wonder if we could design something simpler and more
> unified. Maybe a single SizeUnit enum with SI and IEC names mixed (KILO,
> KIBI, MEGA, MEBI, etc) ?
>
> Emmanuel Bourg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message