Hi,
Mon, 15 Jul 2013 00:20:17 +0200
Cédric Krier <[email protected]>:
>I would like to submit this poll for this change:
>http://codereview.tryton.org/969002/#msg9
>    kg.convert(1000, gr) == 1
If this means something like "convert 1000 gram into kilogram" this one
is right and more logical for me. 1000 and 'gr' are written
close together, so they 'belong' together. The pattern is IMHO
similar to::

    ','.join(('Hello', 'World')) vs.
    'Hello'.join((',', 'World'))

>    gr.convert(1000, kg) == 1
>Which one is more logical/easy/right?
IHMO both are not 'easy'. Easy could be something like this::

    https://pypi.python.org/pypi/units/

Regards
Udo

Attachment: signature.asc
Description: PGP signature

Reply via email to