emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: humble proposal: New special form progn-1


From: Tino Calancha
Subject: Re: humble proposal: New special form progn-1
Date: Wed, 27 Jul 2016 22:58:09 +0900 (JST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)



On Wed, 27 Jul 2016, Andreas Schwab wrote:

On Mi, Jul 27 2016, Tino Calancha <address@hidden> wrote:

* Other way to acomplish one usual task.

How usual is that task?
I will estimate it:
Running following command on lisp dir:

find lisp -type f -exec grep --color -InH -e regexp \{\} +

1) regexp = '(prog1 '
   matches: 462
2) regexp = '(prog2 '
   matches: 20
3) regexp = '(progn '
   matches: 2262

I would say similar order of magnitude as 1), i.e.,  ~ 20% of 3)



* Allow lower indentation level (see below):

(progn-1
  (form1)
  (form2)
  (form3)
  .
  .
  .
  (formN-1)
  (formN))

(progn
 (form1)
 ...
 (prog1
     (formN-1)
   (formN)))

Its also nice; maybe slightly more readable the first one.
You know, it's matter of taste: 2 forms VS 1 form, like:
(let ((i 1)
      (j 2))
  (form))

compared with:

(let ((i 1))
  (let ((j 2))
    (form)))

Tino



reply via email to

[Prev in Thread] Current Thread [Next in Thread]