in reply to Strong typing and Type Safety.A multilanguage approach
So what? Thats a handy tool to have in the hands of an experienced programmer. So what do YOU think of Perl's automatic type handling? As a fairly long time user, I can say it makes programming alot easier, rather than being forced to make casts and lines of empty prototype specifications.Consider another example : open( my $FILEHANDLE, '<', 'myfile.txt' ); $a=<$FILEHANDLE>; #<> returns just one line open( my $FILEHANDLE, '<', 'myfile.txt' ); @a=<$FILEHANDLE>; #<> returns the whole file contents the diamond operator returns different values depending on the context +.
Now it does slow processing, to have the program itself, determine variable types, but when you need speed, you can always reach for C or Fortran. ( and call it from Perl thru IPC :-) )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Strong typing and Type Safety.A multilanguage approach
by nikosv (Deacon) on Nov 20, 2010 at 08:17 UTC | |
by zentara (Cardinal) on Nov 20, 2010 at 18:00 UTC |