Lisp-no-yama
programming as self-expression
meetings blogs news home
Home

Add a comment

 

Re: What if Lisp was invented by the Japanese?

From a programming perspective this is just switching to postfix. Postfix is brilliant at cleanly expressing an algorithin and is very easy to parse and process. It also removes any requirment for parentheses.

(((4 5 +) 3 *) print)

becomes:

45+ 3* print

The original infix version of this would be:

print ( ( 4+5 ) *3 )

As pointed out by previous commenter postfix was the syntax used by Forth although what really distinguished Forth was that it was primarily a stack machine and a threaded interpreter (whole other topics). Using a stack machine to proces postfix expressions is simple and efficent.

 


Re: What if Lisp was invented by the Japanese?


Title
Body
HTML : b, strong, i, em, blockquote, br, p, pre, a href="", ul, ol, li, sub, sup
OpenID Login
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).