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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.52.7.194 with SMTP id l2mr9491139vda.12.1432294197044; Fri, 22 May 2015 04:29:57 -0700 (PDT) X-Received: by 10.140.90.81 with SMTP id w75mr117336qgd.22.1432294196946; Fri, 22 May 2015 04:29:56 -0700 (PDT) Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!z60no3191570qgd.1!news-out.google.com!4ni15qgh.1!nntp.google.com!z60no3191569qgd.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 22 May 2015 04:29:56 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=194.157.152.226; posting-account=QrZwxQoAAAByl3YAWTpexAk3yBYyZMHn NNTP-Posting-Host: 194.157.152.226 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <127b004d-2163-477b-9209-49d30d2da5e1@googlegroups.com> Subject: Re: Build language with weak typing, then add scaffolding later to strengthen it? From: kalvin.news@gmail.com Injection-Date: Fri, 22 May 2015 11:29:56 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.giganews.com comp.lang.ada:193247 Date: 2015-05-22T04:29:56-07:00 List-Id: Even C could be made more robust, if simple type checking is performed at compile time. For example, typedef int apples; typedef int oranges; apples a = 5; oranges o = a; should generate type check error as the types are definitely different types. Also, assigning enums to ints and ints to enums should be considered illegal.