|
> There are a few details you've yet to consider, Buck.
Absolutely!
> Let me get this right:
> You believe that
>
> 1) name=getName(object, whatEverKey)
>
> is SIGNIFICANTLY BETTER than:
>
> 2) name=getName("Vendor", whatEverKey)
> 3) name=getVendorName(VendorKey)
>
> When 2 and 3 are available as of a few releases ago??
Yes, I do. Because I would be able to construct more generic
assembly/disassembly routines. Driven by the data instead of needing a
giant SELECT/WHEN group. Being able to code one function call to extract or
insert any name in an XML/HTML/EDI stream instead of many function calls
saves time which is money. Although your variant 2 is quite close to that,
and is what I tend to use now.
> PLEASE don't try to convince me #1 is easier,
> and saves time and money, unless you wanna
> debate the article I referred to.
My only intent was to demonstrate an actual business use for overloading.
I'm not at all trying to say that function overloading is the be-all and
end-all of programming. Just that it does have a place in the pantheon.
--buck
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.