We don't bite newbies here... much | |
PerlMonks |
Re: strong typingby hardburn (Abbot) |
on Dec 14, 2004 at 19:10 UTC ( [id://414817]=note: print w/replies, xml ) | Need Help?? |
One other thing: note that even the most strongly typed langauge will let you define a function that takes one type and returns another:
(If you're not familer with OCaml, the above makes a function that takes a list of integers and sums them, returning a single integer. In OCaml, "int list" and "int" are totally seperate types.) Indeed, a language that didn't allow you to do this would be very limited. "There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
In Section
Perl News
|
|