Thanks for explaining that, Tom.  C# sounds more like Java than C.  I
haven't really gotten around to C# yet, but my first two languages
(besides fortran and html) were C and Java - sounds like C# is a hybrid.
 In either case, for those of us that don't know, Java also allows for
method overload.  Method overload really isn't a big deal in Java, as
you can always just use loops and if/then/else/etc.s to take care of the
same data type problems with fewer lines of code.  Method overload does
keep your code looking simple, however.
Anyway, that's my two cents, so I thought I'd pitch it in.

Jeff

>>> [EMAIL PROTECTED] 8/4/2006 12:47 pm >>>
With C# you can pass nulls into a method in place of a parameter.  C#
does not allow for "optional" method parameters.  But it does allow
for
method overload.  Method overload means you can have multiple methods
with the same name, but each method must have a different signature. 
A
method's signature is defined by it's parameters (name and data type).
So, you can have a method named GetCustomerName(int CustomerID) and
GetCustomerName(string emailAddress).  Same method name, different
signatures.
 
When I first started C#, I didn't think this was a big deal.  How
wrong
I was.  Method overloading is awesome. 
 
 
Thanks
 
Tom
 

________________________________

From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Shuck
Sent: Friday, August 04, 2006 12:39 PM
To: Dallas/Fort Worth ColdFusion User Group Mailing List
Subject: Re: [DFW CFUG] a local perspective on the CF8 wishlist


I don't have enough experience in other languages to know how the
majority handle this, but I completely agree.  It always bothers me
having to duck-type them or set them with a bogus date (or number or
whatever).  



On 8/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 

        ... or a method and a way to allow null for arguments (if
argument has a type of date, allow a null value) 
         



-- 
~Dave Shuck
[EMAIL PROTECTED] 
www.daveshuck.com 
www.worldwildweb.biz 

_______________________________________________
Reply to DFWCFUG: 
  [email protected]
Subscribe/Unsubscribe: 
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives: 
    http://www.mail-archive.com/list%40list.dfwcfug.org/             
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors: 
  www.HostMySite.com 
  www.teksystems.com/

Reply via email to