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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,24d7acf9b853aac8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder.news-service.com!kanaga.switch.ch!switch.ch!news.belwue.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Thu, 12 Aug 2010 11:22:36 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: S-expression I/O in Ada References: <547afa6b-731e-475f-a7f2-eaefefb25861@k8g2000prh.googlegroups.com> <7027f0c6-d909-428c-ab8d-6ba1bd7ff4b2@x21g2000yqa.googlegroups.com> <1424bzz54867w.soj1iq72wkwl$.dlg@40tude.net> <9db37b80-acbb-4c9f-a646-34f108f52985@v15g2000yqe.googlegroups.com> <16xmnn0qe5yog.ii1p0ap9yuth$.dlg@40tude.net> <5d1d705a-008a-43f1-aa19-9b4878ec926b@m1g2000yqo.googlegroups.com> <7n73yzwym49n$.1f5vg0mbw5jf3$.dlg@40tude.net> <98284e63-8db5-4de1-b3f6-08dff97b6579@z28g2000yqh.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4c63bd5c$0$6760$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 12 Aug 2010 11:22:36 CEST NNTP-Posting-Host: 77c5b8a6.newsspool3.arcor-online.net X-Trace: DXC=jP83:_M`1E=;]cDoEWD6A4McF=Q^Z^V384Fo<]lROoR18kFejV8AJn`K4OQ<>5<\jI\;LNOi3 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:13164 Date: 2010-08-12T11:22:36+02:00 List-Id: On 8/12/10 10:53 AM, Natacha Port� wrote: > I have to admit I was quite surprised to find my old way of using S- > expressions to be so extremely more difficult in Ada compared to C > (whaddoyoumean I can't just feed to strcmp() raw data I've just read > from a file!?). You can "=" just those bytes: you'll just have to drop type checking by using an instance of Unchecked_Conversion of the-bytes-you-read to String. > But on other hand it might be a good thing to be > shaken into realizing the deep implication from the difference in > typing strength. The 12K SLOC Python programs on my screen surely would be a little easier to rewrite if Python had explicit typing. assert isinstance(this, that) seems a helpful workaround, but tedious in comparison to strong typing during translation...