Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion PROGN considered intrusive?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Martti Halminen  
View profile  
 More options Mar 21 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: Martti Halminen <m...@dpe.rm_spam_trap.fi>
Date: 1999/03/21
Subject: Re: PROGN considered intrusive?

Erik Naggum wrote:

>   there have been strong arguments against IF (and WHEN and UNLESS) here
>   and elsewhere, and they continue to baffle me.

Either you are referring to a longer time than I've been reading c.l.l,
or you are reading some statements in some newbie threads more seriously
than I did.

> today, it dawned on me
>   that maybe what people actually don't like is PROGN.  

Last I checked, WHEN and UNLESS had implicit PROGN, so
if anybody has a problem with them, it's probably not the same as with
IF.

<snip>

>   so instead of the standard Common Lisp

> (if (foo)
>     (progn
>       (then-1)
>       (then-2))
>   (progn
>     (else-1)
>     (else-2)))

>   we could have

> (if (foo)
>     {(then-1)
>      (then-2)}
>   {(else-1)
>    (else-2)})

Personally I dislike this idea due to bad readability: with my bad
eyesight the difference between () and {} is too small to be easily
distinguishable in the standard fonts used on this machine. (yeah, I
know I should get new glasses...)

>   do people actually think PROGN is intrusive and a waste of space?  would
>   using a short-hand like {} work as well to reduce "noise" as using '
>   instead of a QUOTE form does?  and does this make more sense than IF*?

Whenever the PROGNs start to annoy me, I find myself converting the code
to use COND or CASE, instead of IF. As I often write stuff with multiple
branches, anyway, I don't have major problems with that.

--


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.