Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Perl as a Strong-Type and Dynanmic Programming Language

by nikosv (Hermit)
on Aug 31, 2010 at 05:48 UTC ( #858119=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl as a Strong-Type and Dynanmic Programming Language
in thread Perl as a Strong-Type and Dynanmic Programming Language

However it should be pointed out that type inference is a compile time afair and not a runtime afair;C# did not turn dynamic because of the use of the 'var' keyword.

In the most simple cases such as with primitive data types, type inference provides a shortcut instead of explicitly denoting the type of the variable :

var a=10; #the compiler infers that a is an int

but its real value comes when having to assign the return value of an expression's evaluation to a variable and is difficult to work out the variable's type so you must cast or re-cast;cases like that occur frequently with Linq queries


Comment on Re^2: Perl as a Strong-Type and Dynanmic Programming Language

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://858119]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2014-09-01 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (299 votes), past polls