newRPL: [UPDATED April 27-2017] Firmware for testing available for download
|
10-22-2015, 09:43 PM
Post: #82
|
|||
|
|||
RE: newRPL: [UPDATED Oct-19-2015] Firmware for testing available for download
(10-22-2015 08:50 PM)matthiaspaul Wrote: Actually, I think, prefixes are so fundamental, the system should ideally support them both (decimal per SI/ISO and binary per IEC/IEEE/ISO) by default.I understand your point. Decimal prefixes are used for many units, consistently as per SI specifications, therefore it makes sense that the system supports them automatically, as the effort of entering 20 units for each unit you want to define is significant. Binary prefixes on the other hand, are only used on one unit (byte). For that one particular case, there's only a few units that need to be defined (8), so I'm not sure I can justify the speed penalty in the system to scan for those prefixes on every single operation involving units. Other than the definition of the unit, there's absolutely no difference on whether the prefix is applied "manually" by the user, or automatically by the system, so in that case I'll probably define the byte with all its prefixes as a system unit, with 8 individual definitions, and the user will never know the difference. (10-22-2015 08:50 PM)matthiaspaul Wrote: For flexibility, perhaps the ? syntax could be expanded by adding some kind of "attributes" to it so that the system will support on a unit by unit basis:I like the "preferred target unit" idea, perhaps as an attribute of a variable, not of the unit per se. I'm not so sure how to implement something like that yet, I'll have to give it some more thought. Regarding the additional syntax, 'G+xi?B' looks like a Regex expression, a user would only be able to use that with the manual in hand, or more likely will never use that feature. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)