Google Groups Home
Help | Sign in
New notation
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 47 - Collapse all   Newer >
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
Rares Marian  
View profile
(2 users)  More options May 26, 12:17 am
Newsgroups: comp.lang.lisp
From: Rares Marian <rares.mar...@gmail.com>
Date: Mon, 26 May 2008 04:17:09 GMT
Local: Mon, May 26 2008 12:17 am
Subject: New notation
What if we solved the readability problem?

I know emacs indents everything nicely but suppose we did the following:
#1. Continue using parentheses to open
#2. Use ] to close remaining open parentheses up to cursor on current line
#3. Use } to close remaining open parentheses up to current line in file

Alternatively, we could:
#4. Use ] to close remaining open parentheses for just the current
argument to a function
#5. Use } for #4 but up to the current line


    Reply to author    Forward  
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.
Ken Tilton  
View profile
 More options May 26, 1:01 am
Newsgroups: comp.lang.lisp
From: Ken Tilton <kennytil...@optonline.net>
Date: Mon, 26 May 2008 01:01:32 -0400
Local: Mon, May 26 2008 1:01 am
Subject: Re: New notation

Rares Marian wrote:
> What if we solved the readability problem?

> I know emacs indents everything nicely but suppose we did the following:
> #1. Continue using parentheses to open
> #2. Use ] to close remaining open parentheses up to cursor on current line
> #3. Use } to close remaining open parentheses up to current line in file

> Alternatively, we could:
> #4. Use ] to close remaining open parentheses for just the current
> argument to a function
> #5. Use } for #4 but up to the current line

Why didn't we think of this before!? Thanks!!

kenny

ps. What parentheses? k

--
http://smuglispweeny.blogspot.com/
http://www.theoryyalgebra.com/
ECLM rant:
http://video.google.com/videoplay?docid=-1331906677993764413&hl=en
ECLM talk:
http://video.google.com/videoplay?docid=-9173722505157942928&q=&hl=en


    Reply to author    Forward  
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.
Dihydrogen Monoxide  
View profile
(1 user)  More options May 26, 1:25 am
Newsgroups: comp.lang.lisp
From: Dihydrogen Monoxide <rares.mar...@gmail.com>
Date: Mon, 26 May 2008 05:25:22 GMT
Local: Mon, May 26 2008 1:25 am
Subject: Re: New notation

On Mon, 26 May 2008 01:01:32 -0400, Ken Tilton wrote:

<snip>

> Why didn't we think of this before!? Thanks!!

> kenny

> ps. What parentheses? k

(are (talking (about (am I))) (the (parentheses these)))

I know I didn't get that right.


    Reply to author    Forward  
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.
Lars Rune Nøstdal  
View profile
 More options May 26, 1:59 am
Newsgroups: comp.lang.lisp
From: Lars Rune Nøstdal <larsnost...@gmail.com>
Date: Mon, 26 May 2008 07:59:52 +0200
Local: Mon, May 26 2008 1:59 am
Subject: Re: New notation

Rares Marian wrote:
> What if we solved the readability problem?

No thanks. It's staying exactly the way it is. Go away.

--
Lars Rune Nøstdal
http://nostdal.org/


    Reply to author    Forward  
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.
Dihydrogen Monoxide  
View profile
(1 user)  More options May 26, 2:43 am
Newsgroups: comp.lang.lisp
From: Dihydrogen Monoxide <rares.mar...@gmail.com>
Date: Mon, 26 May 2008 06:43:05 GMT
Local: Mon, May 26 2008 2:43 am
Subject: Re: New notation

On Mon, 26 May 2008 07:59:52 +0200, Lars Rune Nøstdal wrote:
> Rares Marian wrote:
>> What if we solved the readability problem?

> No thanks. It's staying exactly the way it is. Go away.

I think I'll stick around. I love lisp. It just makes my eyes bleed with
the parens.

What I find funny though is that most programming languages are prefix
not infix. The only non-prefix aspect is assignment and mathematical
operations.


    Reply to author    Forward  
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.
Rob Warnock  
View profile
 More options May 26, 5:12 am
Newsgroups: comp.lang.lisp
From: r...@rpw3.org (Rob Warnock)
Date: Mon, 26 May 2008 04:12:20 -0500
Local: Mon, May 26 2008 5:12 am
Subject: Re: New notation
Rares Marian <rares.mar...@gmail.com> wrote:

+---------------
| What if we solved the readability problem?
+---------------

*What* "readability problem"?!? There's no no "readability problem"...

[Maybe you need a decent editor?]

-Rob

-----
Rob Warnock                     <r...@rpw3.org>
627 26th Avenue                 <URL:http://rpw3.org/>
San Mateo, CA 94403             (650)572-2607


    Reply to author    Forward  
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.
Dihydrogen Monoxide  
View profile
 More options May 26, 6:30 am
Newsgroups: comp.lang.lisp
From: Dihydrogen Monoxide <rares.mar...@gmail.com>
Date: Mon, 26 May 2008 10:30:19 GMT
Local: Mon, May 26 2008 6:30 am
Subject: Re: New notation

On Mon, 26 May 2008 04:12:20 -0500, Rob Warnock wrote:
> [Maybe you need a decent editor?]

> -Rob

> -----
> Rob Warnock                        <r...@rpw3.org>
> 627 26th Avenue                    <URL:http://rpw3.org/> San Mateo,
CA 94403        
> (650)572-2607

It's hard to explain.

    Reply to author    Forward  
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.
danb  
View profile
 More options May 26, 6:50 am
Newsgroups: comp.lang.lisp
From: danb <sogwal...@gmail.com>
Date: Mon, 26 May 2008 03:50:39 -0700 (PDT)
Local: Mon, May 26 2008 6:50 am
Subject: Re: New notation
On May 26, 1:43 am, Dihydrogen Monoxide <rares.mar...@gmail.com>
wrote:

> I love lisp. It just makes my eyes bleed with the parens.

I use a macro called LETT: (lett x (get-x) ...),
which eliminates two pairs of parens in binding
a single variable, as in (let ((x (get-x))) ...),
or 14 letters when binding a list of variables, as
in destructuring-bind.

Even better than trimming parens is wrapping entire
chunks of your program in macros.  A couple parens
here and there can be helpful in parsing the code.
I have a few things documented here:
http://www.prairienet.org/~dsb/myclcode.htm

and there's a recent download bundled with
my pattern-matching library here:
http://common-lisp.net/project/cl-match/

--Dan

------------------------------------------------
Dan Bensen  http://www.prairienet.org/~dsb/

cl-match:  expressive pattern matching in Lisp
http://common-lisp.net/project/cl-match/


    Reply to author    Forward  
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.
danb  
View profile
 More options May 26, 6:55 am
Newsgroups: comp.lang.lisp
From: danb <sogwal...@gmail.com>
Date: Mon, 26 May 2008 03:55:25 -0700 (PDT)
Local: Mon, May 26 2008 6:55 am
Subject: Re: New notation
On May 26, 1:43 am, Dihydrogen Monoxide <rares.mar...@gmail.com>
wrote:

> I love lisp. It just makes my eyes bleed with the parens.

I use a macro called LETT: (lett x (get-x) ...),
which eliminates two pairs of parens in binding
a single variable, as in (let ((x (get-x))) ...),
or 14 letters when binding a list of variables, as
in destructuring-bind.

Even better than trimming parens is wrapping entire
chunks of your program in macros.  A couple parens
here and there can be helpful in parsing the code.
I have a few things documented here:
http://www.prairienet.org/~dsb/myclcode.htm

and there's a recent download bundled with
my pattern-matching library here:
http://common-lisp.net/project/cl-match/

--Dan

------------------------------------------------
Dan Bensen  http://www.prairienet.org/~dsb/

cl-match:  expressive pattern matching in Lisp
http://common-lisp.net/project/cl-match/


    Reply to author    Forward  
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.
Pertti Kellomäki  
View profile
 More options May 26, 7:34 am
Newsgroups: comp.lang.lisp
From: Pertti Kellomäki <pertti.kellom...@tut.fi>
Date: Mon, 26 May 2008 14:34:25 +0300
Local: Mon, May 26 2008 7:34 am
Subject: Re: New notation

danb wrote:
> A couple parens
> here and there can be helpful in parsing the code.

The parentheses are there to tell your editor how to indent the code.
Then you read the indentation.
--
Pertti

    Reply to author    Forward  
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.
Andrew Reilly  
View profile
(2 users)  More options May 26, 7:57 am
Newsgroups: comp.lang.lisp
From: Andrew Reilly <andrew-newsp...@areilly.bpc-users.org>
Date: 26 May 2008 11:57:45 GMT
Local: Mon, May 26 2008 7:57 am
Subject: Re: New notation

On Mon, 26 May 2008 06:43:05 +0000, Dihydrogen Monoxide wrote:
> I think I'll stick around. I love lisp. It just makes my eyes bleed with
> the parens.

Not really.  You're just not used to absence of the dust of commas and
semicolons.  You'll get used to the cleanliness eventually.

--
Andrew


    Reply to author    Forward  
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.
Pascal J. Bourguignon  
View profile
 More options May 26, 10:17 am
Newsgroups: comp.lang.lisp
From: p...@informatimago.com (Pascal J. Bourguignon)
Date: Mon, 26 May 2008 16:17:09 +0200
Local: Mon, May 26 2008 10:17 am
Subject: Re: New notation

Rares Marian <rares.mar...@gmail.com> writes:
> What if we solved the readability problem?

> I know emacs indents everything nicely but suppose we did the following:
> #1. Continue using parentheses to open
> #2. Use ] to close remaining open parentheses up to cursor on current line
> #3. Use } to close remaining open parentheses up to current line in file

> Alternatively, we could:
> #4. Use ] to close remaining open parentheses for just the current
> argument to a function
> #5. Use } for #4 but up to the current line

Go fetch paredit.el!

--
__Pascal Bourguignon__


    Reply to author    Forward  
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.
danb  
View profile
 More options May 26, 10:51 am
Newsgroups: comp.lang.lisp