Tony Mechelynck (2008-11-20 05:15 +0100) wrote:

> On 19/11/08 18:11, Tom Link wrote:
>> parentheses rock.

> parentheses suck.

Parentheses make it easy to see code in hierarchically structured units,
even the smallest parts. It's also easy to evaluate any such unit
interactively.

    (function1 (function2 parameter))

In Emacs user just moves the cursor after any closing parentheses and
presses "C-x C-e". That unit is evaluated immediately and becomes part
of the current Emacs session. More concrete example:

    (* 2 (+ 1 4))

Pressing "C-x C-e" when the cursor is after "(+ 1 4)" will print "5",
and after the last parentheses will print "10".

No matter what someone thinks about Lisp in general this suits extremely
well to programmable environments like Emacs where user can
interactively evaluate (and debug) code and it becomes part of the
environment right away.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to