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
throw vs. return-from
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
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
David Bakhash  
View profile  
 More options Jun 19 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: David Bakhash <ca...@acs.bu.edu>
Date: 1999/06/19
Subject: throw vs. return-from
Since `return-from', used in conjunction with a `block' seems like nothing
more than the lexical version of `throw', why does `return-from' take an
&optional result-form, whereas `throw' requires its second argument
(result-form)?  It's a small detail, but I like to understand inconsistencies
in the language, it this is one.  I think the 2nd arg in `throw' should be
optional.

dave


 
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.
Kent M Pitman  
View profile  
 More options Jun 19 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: Kent M Pitman <pit...@world.std.com>
Date: 1999/06/19
Subject: Re: throw vs. return-from

David Bakhash <ca...@acs.bu.edu> writes:
> Since `return-from', used in conjunction with a `block' seems like nothing
> more than the lexical version of `throw', why does `return-from' take an
> &optional result-form, whereas `throw' requires its second argument
> (result-form)?  It's a small detail, but I like to understand inconsistencies
> in the language, it this is one.  I think the 2nd arg in `throw' should be
> optional.

History.  It's a reasonable request that THROW should do likewise.
But you should understand that THROW and BLOCK were not really originally
understood to be so related and have each followed separate migration paths
over a long period of time in order to get, as they are now, close enough
to similar that you can see this.

It used to be that there was also a set of functions called ERRSET and ERR
which were not substantially more than CATCH and THROW without ERR passing
a value back.  It took a while to realize that ERR and THROW were really
redundant and to get them out.  We got rid of ERR, which was good because
it was kind of a mess, but we go rid of the 0-arg version of THROW in the
process, which was probably bad.

All other things being equal, I'd advocate fixing this.  But the expense
of changing the standard is so high that likely the changes you'll see in
the future will ber layerings, not corrections.  Still, we'll see.
That's just a guess on my part, not anyone's policy statement.


 
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.
Erik Naggum  
View profile  
 More options Jun 20 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.no>
Date: 1999/06/20
Subject: Re: throw vs. return-from
* Kent M Pitman <pit...@world.std.com>
| All other things being equal, I'd advocate fixing this.  But the expense
| of changing the standard is so high that likely the changes you'll see in
| the future will ber layerings, not corrections.  Still, we'll see.
| That's just a guess on my part, not anyone's policy statement.

  hm?  how would making an argument optional be expensive?  it seems like
  it's a trivial thing to do, while, say, adding a required argument would
  be expensive.  perhaps I'm misled by the work required to make it work
  that way in a conforming Common Lisp system:

(shadowing-inport 'cl:throw)
(defmacro throw (tag-form &optional result-form)
  `(cl:throw ,tag-form ,result-form))

#:Erik
--
@1999-07-22T00:37:33Z -- pi billion seconds since the turn of the century


 
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.
David Bakhash  
View profile  
 More options Jun 20 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: David Bakhash <ca...@acs.bu.edu>
Date: 1999/06/20
Subject: Re: throw vs. return-from
I agree that this is not a big change, because it won't (AFAIK) break old
code, and it won't change the behavior of Lisp, yet it will make it more
consistent.  Anyway, if one wanted to "request" such a change, who would
he/she contact?  Is there a place that you're supposed to write to people
suggesting these changes, etc?

dave


 
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.
Christopher R. Barry  
View profile  
 More options Jun 20 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: cba...@2xtreme.net (Christopher R. Barry)
Date: 1999/06/20
Subject: Re: throw vs. return-from

David Bakhash <ca...@acs.bu.edu> writes:
> I agree that this is not a big change, because it won't (AFAIK) break old
> code, and it won't change the behavior of Lisp, yet it will make it more
> consistent.  Anyway, if one wanted to "request" such a change, who would
> he/she contact?  Is there a place that you're supposed to write to people
> suggesting these changes, etc?

You can pay your $600 in dues and become part of the current NCITS/J13
standardization process for the next revision of the ANSI Common Lisp
standard, if the deadline for membership has not passed yet. You can
contact s...@franz.com for details about joining and find out if it
isn't too late, and you can subscribe to X3...@ai.sri.com, though it
has been pretty quiet as discussion goes on now without public view by
paying members only.

Christopher


 
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.
Tim Bradshaw  
View profile  
 More options Jun 20 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: Tim Bradshaw <t...@tfeb.org>
Date: 1999/06/20
Subject: Re: throw vs. return-from
* Christopher R Barry wrote:

> You can pay your $600 in dues and become part of the current NCITS/J13
> standardization process for the next revision of the ANSI Common Lisp
> standard, if the deadline for membership has not passed yet. You can
> contact s...@franz.com for details about joining and find out if it
> isn't too late, and you can subscribe to X3...@ai.sri.com, though it
> has been pretty quiet as discussion goes on now without public view by
> paying members only.

That last bit isn't correct: there is no discussion currently going on
that is available to J13 people only (or if there is it is
accidentally only reaching a subset!).  There was an (informal)
proposal that something like that should happen but nothing was
actually done.

Another correction: there is no deadline for membership, although it
runs by calendar year so if you join now you are paying $600 for 6
months.

However a large proportion of the J13 members probably read this
newsgroup, so I should think that good ideas that appear here are at
least being noticed.

--tim


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »