Al Lipscomb writes:
I was wondering about maybe being able to store these
attributes as
optional parts of the scalar. Something like this (please
don't get hung up
on the details, I am not much of a designer):
my($amt,$hours,$total);
$amt-{TYPE} = "DOLLARS";
$total-{TYPE} =
Fisher Mark wrote:
* Units of measure are optional;
* Units of measure are fast; and
* Implementing units of measure don't appreciably slow down computations
that don't use units of measure.
enforced types without automatic conversions does all this, the matches
are made once at
At 12:57 PM 8/29/00 -0500, David L. Nicol wrote:
I'd like to see every number bundled with a "precision" attribute. It's
a holdover from when I was heavily into chemistry.
Some of the other RFCs on the list also appear to have been triggered the
same way.
Oh, wait...
:-)
--
Peter Scott
I'd like to see every number bundled with a "precision" attribute.
That's not what I call a high-level language feature. People don't
want to think about that, nor about machine-level precision issues.
See REXX.
In fact, I'd rather to see a painless and transparent int-float-bignum
On Tue, 29 Aug 2000, David L. Nicol wrote:
I'd like to see every number bundled with a "precision" attribute.
While that might be useful for simple calculations, I expect it would
simply get in the way and slow things down for larger, more complex
calculations.
Alas I don't think there's any
At 02:49 PM 8/29/00 -0400, Andy Dougherty wrote:
On Tue, 29 Aug 2000, David L. Nicol wrote:
I'd like to see every number bundled with a "precision" attribute.
While that might be useful for simple calculations, I expect it would
simply get in the way and slow things down for larger, more
I'd like to see eq and it's brethen retained, as dammit there are times
I want to know (-w) if numbers are turning up when there should be
words and vice-versa. However, spinning off of something Randal wrote:
Yes, but what about:
$a = '3.14'; # from reading a file
$b =
Is eq needed? Can't == be used for either context?
$a == 'cat'
is readily distinguishable from
$a == 2;
so the compiler should be able to determine context.
Get Your Private, Free E-mail from MSN Hotmail at
On Sun, 20 Aug 2000 17:50:20 -0600 (MDT), Nathan Torkington wrote (in part):
Nat Ed Mills writes:
Is eq needed? Can't == be used for either context? $a ==
'cat' is readily distinguishable from $a == 2; so the compiler
should be able to determine context.
Nat if ($a == $b)
Nat Is that