Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Date ... Date ...Da
only_forme4_at_hotmail.com (moon) wrote in message news:<2afc1efd.0404150938.213ec01b_at_posting.google.com>...
> > If some of us had our way ... no programming language would ever
> > do implicit conversions to keep lazy developers from writing bad
> > code.
> >
>
>
> No No No?. I don't agree with you. Programming languages got a lot of
> enhancements in the last decades. For example, Java provide the
> following (coated from Java Spec Book)
>
> "Numeric promotions are conversions that change an operand of a
> numeric operation to a wider type, or both operands of a numeric
> operation to a common type, so that an operation can be performed."
>
> Example:
>
> Short + Double + Int
>
> Will be converted:
>
> Double + Double + Double
>
> Don't tell me that I should not be "Lazy Programmer", and I should do
> the following:
>
> (double) Short + (double) Double + (double) Int
>
> ; )
>
>
> > Just write good code and you'll never have to think about it again.
>
> Oh Really!
Really. BASIC and similar languages provided such a feature decades ago, and led to decades of programs where 0 <> 0.
jg
-- @home.com is bogus. Either you need a tight language or a lint-picker.Received on Thu Apr 15 2004 - 19:24:52 CDT