[racket-dev] enabling profiling affects stepper continuation marks?

2010-10-10 Thread Stephen Chang
I'm using version 5.0.1.5--2010-09-03 (I'm not using the latest because some tests are broken in the latest). If I run the stepper tests with no debugging and no profiling, or with just debugging, all the tests pass. But if I run the tests with debugging and profiling turned on, some tests fail. I

Re: [racket-dev] `cond' / `when' / `unless' / etc bodies

2010-10-10 Thread Jos Koot
+1, In macro definitions that produce code with bodies, I almost by routine write (let () etc ...) There may be a problem including the bodies of begin forms, for they may be lifted out. Jos > -Original Message- > From: dev-boun...@racket-lang.org > [mailto:dev-boun...@racket-lang.org]

Re: [racket-dev] `cond' / `when' / `unless' / etc bodies

2010-10-10 Thread Jay McCarthy
Ditto. On Sun, Oct 10, 2010 at 1:36 PM, Matthias Felleisen wrote: > > On Oct 10, 2010, at 2:43 PM, Robby Findler wrote: > >> I too am in favor of when, unless, and cond being definition contexts. > > +1. > > I routinely wrap cond/when in let () for just that purpose. > ___

Re: [racket-dev] `cond' / `when' / `unless' / etc bodies

2010-10-10 Thread Matthias Felleisen
On Oct 10, 2010, at 2:43 PM, Robby Findler wrote: > I too am in favor of when, unless, and cond being definition contexts. +1. I routinely wrap cond/when in let () for just that purpose. _ For list-related administrative tasks: http://lists.

Re: [racket-dev] `cond' / `when' / `unless' / etc bodies

2010-10-10 Thread Robby Findler
I too am in favor of when, unless, and cond being definition contexts. But I don't understand what this fragment is supposed to illustrate. If the body of a 'when' were a definition context, we'd get this being the same as something like this, which seems to work exactly as it should: Welcome to

Re: [racket-dev] `cond' / `when' / `unless' / etc bodies

2010-10-10 Thread Eli Barzilay
A few seconds ago, Jens Axel Søgaard wrote: > 2010/10/10 Eli Barzilay : > > I like mixing definitions and expressions -- maybe the bodies of > > `cond' etc should also allow it? > > In > > >  (define (foo x) > >    (when (even? x) (define x (add1 x)) (printf "increment\n")) > >    x) > > is the

Re: [racket-dev] `cond' / `when' / `unless' / etc bodies

2010-10-10 Thread Jens Axel Søgaard
2010/10/10 Eli Barzilay : > I like mixing definitions and expressions -- maybe the bodies of > `cond' etc should also allow it? In >  (define (foo x) >    (when (even? x) (define x (add1 x)) (printf "increment\n")) >    x) is the scope of the definition (define x ...) the entire body of foo ? -

[racket-dev] `cond' / `when' / `unless' / etc bodies

2010-10-10 Thread Eli Barzilay
I like mixing definitions and expressions -- maybe the bodies of `cond' etc should also allow it? The only downside I see is the possible confusion in somthing like (define (foo x) (when (even? x) (define x (add1 x)) (printf "increment\n")) x) ;; why isn't this working? but that seem

[racket-dev] Release for v5.0.2 is about to begin

2010-10-10 Thread Ryan Culpepper
The release process for v5.0.2 will begin in about one week. This means that the `release' branch will be created -- please make sure that code that you're responsible for is as stable as possible, and let me know if there is any new work that should not be included in this release. >> NOW

Re: [racket-dev] #true and #false

2010-10-10 Thread Neil Van Dyke
Jay McCarthy wrote at 10/10/2010 10:58 AM: So overall I think that #true and #false are good there [in teaching languages] and I don't see any problem with them being available elsewhere... just not the default. FWIW, I would occasionally like to spell out "#true" and "#false" in my code. M

Re: [racket-dev] #true and #false

2010-10-10 Thread Jay McCarthy
I agree. As far as students go, I've found that my PLAI students (juniors) adapted very fast to #t and #f from the teaching languages and that even they accidentally try to quote true and false within the single week I teach them with the student languages. So overall I think that #true and #false

Re: [racket-dev] #true and #false

2010-10-10 Thread Matthias Felleisen
1. I consider concise readability as superior to short unreadability. In this spirit, #true and #false are an improvement. I understand that more perfect people than myself will never conflate #t with #f, but since it happened to Matthew, I am happy not be alone. (And that happened before I tur

Re: [racket-dev] #true and #false

2010-10-10 Thread Robby Findler
I do wish that "true" and "false" had the same number of letters. (And there is such a parameter. See Matthew's original message for the exact name.) Robby On Sun, Oct 10, 2010 at 8:57 AM, Neil Van Dyke wrote: > Matthew Flatt wrote at 10/10/2010 09:39 AM: >> >> Any other opinions? >> > > No stro

Re: [racket-dev] #true and #false

2010-10-10 Thread Sam Tobin-Hochstadt
On Sun, Oct 10, 2010 at 9:39 AM, Matthew Flatt wrote: > Any other opinions? Personally, I find #true and #false visually ugly, and I also agree with Eli's feelings on terseness. I don't think I've ever accidentally confused #t and #f personally, so I'm not in favor of changing outside of the stu

Re: [racket-dev] #true and #false

2010-10-10 Thread Neil Van Dyke
Matthew Flatt wrote at 10/10/2010 09:39 AM: Any other opinions? No strong opinion, but misc. comments: * When working data in sexps a lot, "#f" taking a lot less space than "#false" can make things a lot more readable. Imagine, for example, a vector of 20 small integers and false values

Re: [racket-dev] #true and #false

2010-10-10 Thread Robby Findler
I probably wasn't clear enough in my original message, but I meant that to be a vote for #true and #false. Robby On Sun, Oct 10, 2010 at 8:39 AM, Matthew Flatt wrote: > At Sun, 10 Oct 2010 01:03:57 -0400, Eli Barzilay wrote: >> > An even more common use of `write', I think, is to print code. If

Re: [racket-dev] #true and #false

2010-10-10 Thread Matthew Flatt
At Sun, 10 Oct 2010 01:03:57 -0400, Eli Barzilay wrote: > > An even more common use of `write', I think, is to print code. If we > > switch to `#true' and `#false' as the default forms of the constants, I > > think we want all those uses of "~.s" that you recently fixed up to > > print with `#true'