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 Dangling Closing Parentheses vs. Stacked Closing Parentheses
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
 
Erik Naggum  
View profile  
 More options Mar 28 2000, 3:00 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.no>
Date: 2000/03/28
Subject: Re: Dangling Closing Parentheses vs. Stacked Closing Parentheses
* "Anthony Cartmell" <AJCartm...@csi.com>
| Sorry for the "newbie" question, but I thought that the indentation was
| based on the list structure, and not the other way round.

  well, this gets a little complicated.  the indentation is automatically
  produced for you based on the list structure by the editor.  the list
  structure, however, becomes visually apparent to us humans through
  indentation.  new Lispers look at the list structure and think they
  understand the indentation.  old Lispers look at the indentation and
  understand the list structure.  new Lispers count parentheses and swear.
  old Lispers reindent their code and immediately spot mistakes and just
  clean them up.  the whole Lisp enlightenment experience is about making a
  fundamental swap between syntax and indentation.  (at least one language
  has made this switch permanent: python.  I'm not sure this is a good
  thing.)

| If the parens were based on the indentation then we wouldn't even need to
| use them.

  this is very naive.  _some_ redundancy is a fundamental characteristic of
  _all_ successful communication, between computers as well as humans.

| My whole reason for using dangling parens in my code is to show which
| open-paren each close-paren closes by its indentation.  I don't
| understand why this is such a bad layout style.

  that's because you have never let yourself get immersed in indentation.
  you don't need to see the parentheses.  (if you start seeing fnords,
  alert your local illuminati.)

#:Erik


 
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.