For a subprocedure? A reusable service that can be called from anywhere? I'd love to have it be able to use that parameter as any different data type!

As a trivial example, consider a procedure that inputs a date in MMDDYY format and outputs it in YYYYMMDD format. wouldn't it be nice if the input value could be a date field, character string, unicode string, zoned decimal, packed decimal or integer field? So I don't have to code a separate procedure for every single input type?

You don't see the value in this, Aaron?


On 4/20/2010 4:15 PM, Aaron Bartell wrote:
But here's my question. How often do you actually prefer a variable to hold
a character in one line of code and then have that same variable hold an
integer in the next? In all my uses of PHP that has only led to hard to
read code and lots of bugs (as it relates to business logic code).

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.