From ... From: Erik Naggum Subject: Re: C# is not Dylan (was: Re: C# : The new language from M$) Date: 2000/07/04 Message-ID: <3171713054143887@naggum.net>#1/1 X-Deja-AN: 642270657 References: <57D01C66CBEFE28E.0140FBE2F42B8951.48F3FDB0A810D9E0@lp.airnews.net> <58rolsg17q7154fdf6dq5l038rbbnl10jt@4ax.com> <3171354053463029@naggum.no> <3171366678290484@naggum.no> <395C9ACA.5272174C@thecia.net> <39618db4$1_1@spamkiller.newsfeeds.com> mail-copies-to: never Followup-To: comp.lang.lisp Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 962724267 8730 195.0.192.66 (4 Jul 2000 15:24:27 GMT) Organization: Naggum Software; vox: +47 8800 8879; fax: +47 8800 8601; http://naggum.no; http://naggum.net User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 Mime-Version: 1.0 NNTP-Posting-Date: 4 Jul 2000 15:24:27 GMT Newsgroups: comp.lang.lisp,comp.lang.dylan * "Janos Blazi" | Well, wjen I started learning Lisp last year I thought than the parentheses | will become a nightmare but now I see that this is not the case. But there | is one example when I still think that infix syntax would be preferable: In | long mathematical formulae: | | (/ (+ (- b) (sqrt (- (* b b) (* 4 (* a c))))) (* 2 a)) | | ot something like that (I have not checked if the formula is correct) still | looks messy and I wonder if practicing would help. I can see immediately if | the infix form is correct, though. Hardcore Lispers know that the syntax of Common Lisp is programmable and act accordingly. Infix has its merit for very simple arithmetic and if that is done often enough to be usefully modified, one simply adds a little convenience to the language. I prefer to use { and } to bracket infix expressions: { (sqrt(b * b - 4 * a * c) - b) / (2 * a)) } However, note that (* 4 (* a c)) is better written (* 4 a c). Few infix-oriented people get beyond two-argument arithmetic functions, but all arithmetic functions take many arguments, and redundancy in form is A better approach to the above would thus be (/ (- (sqrt (- (* b b) (* 4 a c))) b) 2 a) But note how little infix syntax buys you in this case. [ The sore freaks in comp.lang.dylan don't need to be reminded that their language doesn't have a programmable syntax, so followups are redirected away from the pathetic loser camp. ] #:Erik -- If this is not what you expected, please alter your expectations.