resource maps

Benji York benji.york at canonical.com
Mon May 21 18:03:09 UTC 2012


On Mon, May 21, 2012 at 12:47 PM, Clint Byrum <clint at ubuntu.com> wrote:
> Excerpts from William Reade's message of Mon May 21 09:35:21 -0700 2012:
>> On Mon, 2012-05-21 at 13:03 -0300, Gustavo Niemeyer wrote:

>> 2) I don't think we gain anything by using ints over floats... if we use
>> floats, people can still use use ints if they want; and if we don't use
>> floats, we lose (1) the ability to clearly express relative costs and
>> (2) the ability to easily insert new instance-types which are in the
>> middle of the existing ranking. (And I've never really liked numbering
>> things 10, 20, 30 etc just to allow for future expansion... it feels
>> entirely too reminiscent of BASIC, and I'd rather not promote that sort
>> of behaviour unless there's no clean alternative ;).)
>
> FTR, if this goes forward (order, cost, etc), +1 for floats. I can't see
> any value to simplifying to ints, other than to remove confusion with
> "money".

Given the rounding issues, a decimal type may be more pleasant.
-- 
Benji York



More information about the Juju mailing list