Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Python syntax in Lisp and Scheme
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Pascal Bourguignon, post: 1729889"] Yes. The point is that the language is rather agnostic about any topic, even about the syntax. Personnaly I don't like much LOOP, but I take it as an example by the language designers showing us that it's even possioble to avoid parethensis if you don't want them. Well, I would say that kanji is badly designed, compared to latin alphabet. The voyels are composed with consones (with diacritical marks) and consones are written following four or five groups with additional diacritical marks to distinguish within the groups. It's more a phonetic code than a true alphabet. Most probably, you would write a macro named WITH-INFIX and thus automatically scope the infix part: (with-infix 1 / x + 1 / ( x ^ 3 ) + 1 / ( x ^ 5 ) ) and if you write it well: (with-infix if a = b then format t "equal ~D~%" a ; else format t "diff ~D /= ~D~%" a b ; endif ; for i = 1 to 10 ; print i ; next i ) I'll tell you the secret: yes there are alot of parethesis. This is a price all lispers pay for greater benefits. It gives us such advantages that we gladly pay the price. Otherwise, I would say: 1- don't pay so much attention to the parenthesis! 2- if you have to and it's hard, then it means the code is badly structured (probably too big a function). Rewrite it, factorize. 3- what do you mean "printed"? A double-click on any parenthesis selects the enclosed list so it's quite easy to see what it encloses. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Python syntax in Lisp and Scheme
Top