Re: Do we really need eq?

2000-08-30 Thread Dan Sugalski
At 01:31 PM 8/30/00 -0500, David L. Nicol wrote: >Dynamic types-checking slows us down of course, but with both, the >dynmaic type will only be required when it isn;t clear, and that clarity >will keep perl6 instructors with full classrooms. I can guarantee you that keeping instructor's classroom

Re: Do we really need eq?

2000-08-30 Thread David L. Nicol
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 compile-

RE: Do we really need eq?

2000-08-30 Thread Fisher Mark
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->{

Re: Do we really need eq?

2000-08-29 Thread Dan Sugalski
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, mor

attributes definable as well as values Re: Do we really need eq?

2000-08-29 Thread David L. Nicol
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 complex > calcula

Re: Do we really need eq?

2000-08-29 Thread Nathan Wiger
Al- > In some of the OO stuff people (me included) wanted to see simple scalars be > able to act "like" objects. You'll be particularly interested in RFC's 159 and 161, and discussions on -objects. Check out these emails in particular: http://www.mail-archive.com/perl6-language-objects%40perl.

Re: Do we really need eq?

2000-08-29 Thread Andy Dougherty
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

RE: Do we really need eq?

2000-08-29 Thread Lipscomb, Al
>>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 >

Re: Do we really need eq?

2000-08-29 Thread Tom Christiansen
>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 autocon

Re: Do we really need eq?

2000-08-29 Thread Peter Scott
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 Pac

Re: Do we really need eq?

2000-08-29 Thread David L. Nicol
Steve Simmons wrote: > IMHO the code > > $a = '3.14'; # from reading a file > $b = '3.1400'; # from user input > if ($a == $b) { ... } > > should see the two args being tested in numeric context, do the numeric > casting, get floats, and do a floating compare. Durned if I know what

Re: Do we really need eq?

2000-08-28 Thread John Porter
Steve Simmons wrote: > > IMHO the code > > $a = '3.14'; # from reading a file > $b = '3.1400'; # from user input > if ($a == $b) { ... } > > should see the two args being tested in numeric context, do the numeric > casting, get floats, and do a floating compare. Durned if I know wh

Re: Do we really need eq?

2000-08-28 Thread Steve Simmons
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 =

Re: Do we really need eq?

2000-08-20 Thread Randal L. Schwartz
> "Ed" == Ed Mills <[EMAIL PROTECTED]> writes: Ed> Is eq needed? Can't == be used for either context? Ed>$a == 'cat' Ed> is readily distinguishable from Ed>$a == 2; Ed> so the compiler should be able to determine context. Yes, but what about: $a = '3.14'; # from reading a

Re: Do we really need eq?

2000-08-20 Thread Spider Boardman
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 th

Re: Do we really need eq?

2000-08-20 Thread Nathan Torkington
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. if ($a == $b) Is that string comparison or numeric comparison? Nat