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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,73cb216d191f0fef X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.207.2 with SMTP id fw2mr11063759qab.6.1366380603969; Fri, 19 Apr 2013 07:10:03 -0700 (PDT) Path: ef9ni4640qab.0!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nrc-news.nrc.ca!News.Dal.Ca!citadel.nobulus.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Is this expected behavior or not Date: Thu, 11 Apr 2013 09:33:41 +0200 Organization: cbb software GmbH Message-ID: <1q6gm7foi87kr.i2q54bm8sy83.dlg@40tude.net> References: <3gv2jwc95otm.pl2aahsh9ox8.dlg@40tude.net> <1gkxiwepaxvtt$.u3ly33rbwthf.dlg@40tude.net> <1fmcdkj58brky.bjedt0pr39cd$.dlg@40tude.net> <1bj564vat3q1j$.1s4d00rlzx4ux$.dlg@40tude.net> <4hzv51v872q2$.1imijbwd7heqm$.dlg@40tude.net> <1htu9idmcci7x.1vr9eafeivqah$.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2013-04-11T09:33:41+02:00 List-Id: On Wed, 10 Apr 2013 17:15:14 -0500, Randy Brukardt wrote: > You seem to want to completely dump the Ada design in favor of something > based on multi-methods. Nope, I want to reaffirm Ada design in more fundamental terms. I don't want to change the semantics which is OK to me. > Multi-methods are the same as weak typing to me, I > don't want to see them explicitly or implicitly. Exactly the opposite. Multi-methods is a strongly typed description of what the language does anyway. The alternative is overloading proven to work extremely poor. The point is that the class [e.g. of string types] is there. You can handle it ad-hoc using overloading [Ada 95 solution, which is called ad-hoc polymorphism] Or you can articulate the class explicitly. You do it in your proposal anyway as Root_String_Type. In that case there is simply no alternative to multi-methods because n-ary operations do not have preferable argument. So what are you going to do with this? You ditch operations, literals, slices. A great theory! -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de