|
I can make up a return variable name on the fly,
I can also change the type of data the function returns without havingto
I like loose typing of variables because I can avoid some of themonkey
work writing variable definitions (i.e., "WORKING-STORAGE" sections inCOMP-3, so
COBOL). PIC this, PIC that. Oops, can't move PIC X into a PIC S9
gotta use REDEFINE and recompile.the
When I write a PHP function, I can make up a return variable name on
fly, and it doesn't matter if I'm returning characters, numbers, orarrays.
I can also change the type of data the function returns without havingto
change the variable definitions everywhere the function is called.on the
Similarly, when I call a PHP function, I can make up a variable name
fly to receive the output, and it doesn't matter what kind of outputis
being passed back.
But, if you want to call it laziness, guilty as charged. ;-)
Kelly Cookson
Senior Programmer/Analyst
Dot Foods, Inc.
217-773-4486 x12676
www.dotfoods.com
As an Amazon Associate we earn from qualifying purchases.
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.