From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c89924cb7c8c5a42,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-12 18:18:39 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: nma124@hotmail.com (steve_H) Newsgroups: comp.lang.ada Subject: Who said strong typing is a benefit? Date: 12 Oct 2002 18:18:39 -0700 Organization: http://groups.google.com/ Message-ID: <8db3d6c8.0210121718.25cf55e4@posting.google.com> NNTP-Posting-Host: 63.203.198.30 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1034471919 25216 127.0.0.1 (13 Oct 2002 01:18:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 13 Oct 2002 01:18:39 GMT Xref: archiver1.google.com comp.lang.ada:29734 Date: 2002-10-13T01:18:39+00:00 List-Id: since many Ada programmers mention as one of Ada benefits is its strong typing, I thought some here might find the following 'interesting' to read. I guess this is an argument of '4GL' vs '3GL'. The following seems to imply that not having to declare variables and having the ability to mix any variable with any in an expression is a 'benefit'. I am not sure I agree with this, on the other hand, one can not deny that one can write code faster in matlab than in a strongly typed language such as Ada specially for scientific applications where arrays and matrices are heavily used. I wish there was a 'matlab like' environment based on an Ada like language. from http://www.mathworks.com/company/digest/sept02/accel_matlab.pdf "MATLAB Type Handling An important benefit of MATLAB is that users do not have to declare variables to be of certain data types, as is required with 3GLs. In MATLAB, any variable can be assigned a value of any type, and that type can be changed implicitly at will because of an assignment to a new value of a different type.As a result, the MATLAB interpreter is prepared to deal with the most complicated data types (such as an ndimensional array of complex doubles) and is capable of performing operations no matter what the actual data types turn out to be at run-time"