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=2.0 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,d5b211b0c1ffcf3e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.152.217 with SMTP id h25mr344297bkw.3.1339687052261; Thu, 14 Jun 2012 08:17:32 -0700 (PDT) Path: e27ni47667bkw.0!nntp.google.com!news1.google.com!news4.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!news.ecp.fr!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: Practicalities of Ada for app development Date: Sun, 10 Jun 2012 19:37:41 -0500 Organization: Aioe.org NNTP Server Message-ID: References: <79c5c9f7-4b72-4990-8961-b3e2db4db79b@qz1g2000pbc.googlegroups.com> <98ef69fe-f5af-485b-89b2-9358059f4582@googlegroups.com> <1q346u53zhu10.p16uyzeau73b.dlg@40tude.net> Reply-To: nma@12000.org NNTP-Posting-Host: 3C623TNz/HPIQTEl9vi8rg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-06-10T19:37:41-05:00 List-Id: On 6/10/2012 2:47 PM, Dmitry A. Kazakov wrote: >It is not worth the efforts to bother about that, > because, as I said, patterns is a bad idea in general. > Hello Dmitry; Have not followed the whole discussion here. But I just wanted to mention on the above, is that Mathematica is based on just this concept. Patterns. It is really a pattern replacement language at its core. For example, in Mathematica, when I define a function f[x_] := x^2 x_ above means the pattern x. On the right side, the pattern named x is replaced by x raised to 2. That is all what Mathematica does. When no more pattern matching replacement can be done, the final resulting expression is evaluated and the result returned. Hence f[2] returns 2^2 which evaluates to 4 while f["micky mouse"] returns micky mouse^2 My point is pattern based languages can be very powerful, Mathematica is an example, may be the issue is implementation and such. So what works fine in Mathematica, might not work for Ada due to basic design of the language and I think your point about "bad in general" refer to some context which I missed because I did not follow the whole thread, I just jumped in here :) --Nasser