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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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!postnews.google.com!x21g2000yqa.googlegroups.com!not-for-mail From: Natacha Kerensikova Newsgroups: comp.lang.ada Subject: Re: S-expression I/O in Ada Date: Sat, 14 Aug 2010 04:10:13 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9b445af7-8cf9-4b45-be24-8bec7a5906d3@x21g2000yqa.googlegroups.com> References: <547afa6b-731e-475f-a7f2-eaefefb25861@k8g2000prh.googlegroups.com> <87aap6wcdx.fsf@ludovic-brenta.org> <87vd7jliyi.fsf@ludovic-brenta.org> <699464f5-7f04-4ced-bc09-6ffc42c5322a@w30g2000yqw.googlegroups.com> <87ocdbl41u.fsf@ludovic-brenta.org> <318d4041-eb01-4419-ae68-e6f3436c5b66@i31g2000yqm.googlegroups.com> <383ec00d-1f62-4d2f-b501-cedaeaa4b3c4@t2g2000yqe.googlegroups.com> NNTP-Posting-Host: 178.83.214.115 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1281784213 20020 127.0.0.1 (14 Aug 2010 11:10:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 14 Aug 2010 11:10:13 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x21g2000yqa.googlegroups.com; posting-host=178.83.214.115; posting-account=aMKgaAoAAAAoW4eaAiNFNP4PjiOifrN6 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.3) Gecko/20100524 Firefox/3.6.3,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:13277 Date: 2010-08-14T04:10:13-07:00 List-Id: On Aug 14, 12:53=A0am, "Jeffrey R. Carter" wrote: > The body of Sexps will be messy, but it will be written once and mostly i= gnored > from then on. The bodies of To_Sexp and To_Widget will be sort of messy, = but > will be written once (for each type of interest) and mostly ignored from = then > on. The code that implements the functionality of the application will be= clear. Ok I understand know. And actually the only difference with what I had in mind is that I thought of what you call To_Sexp and To_Widget as part of respectively Widgets.Put and Widgets.Get, because I didn't imagine any other place where To_Sexp or To_Widget would be used, so I would have "hand-inlined" them into Put and Get. Of course, I do follow the "don't repeat yourself" principle, and as soon as I would feel the need of another place to have a S-expression <--> Widget conversion I would have built To_Sexp and To_Widget procedures (though probably with another name) from what would have used to be Widgets.Put and Widgets.Get bodies. > Using the Sexps pkg I sketched earlier, one can build an arbitrary S-expr= ession > in a single statement with lots of calls to Empty_List, To_Atom, and Appe= nd. But > one could also build it up in steps using intermediaries. Either way woul= d serve > as an implementation of Widgets.To_Sexp; To_Sexp is a single operation to > convert a Widget to an S-expression. OK Thanks for your explanations, Natacha