home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.forth
- Path: sparky!uunet!email!mips.complang.tuwien.ac.at!anton
- From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
- Subject: Re: forth type checker
- Message-ID: <1993Jan21.082304.28301@email.tuwien.ac.at>
- Sender: news@email.tuwien.ac.at
- Nntp-Posting-Host: mips.complang.tuwien.ac.at
- Organization: Institut fuer Computersprachen, Technische Universitaet Wien
- References: <1993Jan19.125525.17459@email.tuwien.ac.at> <1993Jan19.212029.15677@crd.ge.com> <1993Jan20.093607.20349@email.tuwien.ac.at> <1993Jan20.183012.1078@csi.uottawa.ca>
- Date: Thu, 21 Jan 1993 08:23:04 GMT
- Lines: 33
-
- In article <1993Jan20.183012.1078@csi.uottawa.ca>,
- cbbrowne@csi.uottawa.ca (Christopher Browne) writes:
- |> In article <1993Jan20.093607.20349@email.tuwien.ac.at>
- anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
-
- [on strongly/weakly typed]
- |> >I agree. Therefore I advocate not using them at all.
- |>
- |> I mildly disagree: "strong" tends to refer to systems that attempt to
- |> forbid the type errors; the fact that they aren't PERFECTLY strong
- |> doesn't deny the ATTEMPT. "Weakly" typed languages tend either to
- |> either enforce few or no type errors.
-
- That would be alright, if the terms were used with these meanings.
- Unfortunately they aren't. Pascal, which (as usually implemented) has
- holes in it's type system, is usually called strongly typed, whereas
- Lisp, which has no holes, is usually called weakly typed (and some
- people even call it untyped).
-
- [on the variant record hole in most Pascal implementations]
- |> This special exception doesn't deny the fact that Pascal's compile
- |> time type checking is normally rather strong. You have to do
- |> something fairly special to be able to ignore type checking in Pascal.
-
- I would not call variant records "something fairly special". They are
- present in every significant program. And once you have them, you just
- have to, e.g., remember the wrong field name and, voila, there's your
- uncaught type error.
-
- - anton
- --
- M. Anton Ertl Some things have to be seen to be believed
- anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
-