Newsgroups: comp.lang.perl.moderated
From: Mark-Jason Dominus <m...@plover.com>
Date: Sat, 23 Jun 2001 11:33:05 -0400
Local: Sat, Jun 23 2001 11:33 am
Subject: Re: Perl *is* strongly typed (was Re: Perl description)
Benjamin Goldberg <gold...@earthlink.net>: > Another example: OK, fair enough. But I would have said that a type system that only > perl -e "[]->{0}" > If Perl were loosly typed, perl would actually call the hash fetch > subroutines with the reference to an array. Since it's not that loosly > typed, it detects that the lhs is not a hash ref, and prints out an > error message and exits. has three or four types in it was a very weak type system indeed. Fortran IV (1966) has more types than that, and I don't think many people would claim that Fortran was a strongly typed language; my previous message showed that AWK has similar checks, and I have never known anyone to make the claim that AWK is a strongly typed language. My argument wasn't that Perl isn't strongly typed, because I don't All I said was that if Perl is considered strongly typed, then I don't >From a brief survey of web documents about strong typing, it appears that the description 'strongly typed language' does *not* have any useful or agreed-upon meaning. The confusion is not simply about where to draw a line on a linear scale of type granularity or degree of error checking or anything like that; it's not that some people think a strongly-typed language needs fifty types and others think it needs only thirty. There appears to be a fundamental confusion about the basic meaning of the term 'strongly typed language'. In a couple of hours, I found eight different and incompatible definitions of 'strongly typed language': 1. A language is strongly typed if type annotations are 2. A language is strongly typed if it contains compile-time 3. A language is strongly typed if it has compile or run-time 4. A language is strongly typed if conversions between 5. A language is strongly typed if conversions between 6. A language is strongly typed if there is no language-level 7. A language is strongly typed if it has a complex, 8. A language is strongly typed if the type of its data Some of these are contradictory; some are merely orthogonal. Many Examples are no help here: I found several pages that asserted that C is a strongly-typed language. I found several pages that asserted that C++ is a strongly-typed language. I found several pages that asserted that Lisp is a strongly-typed language. I found several pages that asserted that Perl is a strongly-typed language. It now appears to me that the topic under discussion, whether Perl is You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||