Re: [racket-dev] race setup tests gives wrong error message, best way to fix?

2012-05-11 Thread Eli Barzilay
Yesterday, John Clements wrote: Running raco setup tests gives the following error message: raco setup: given collection path: tests is not in canonical form (e.g., wrong case on a case-insensitive filesystem) [...] … Note that the error message I saw is a fall-through case,

Re: [racket-dev] Reading and writing binary data

2012-05-11 Thread Eli Barzilay
30 minutes ago, Tobias Hammer wrote: after reading this thread on make-sized-byte-string to convert an arbitrary cpointer very efficiently into a byte string Efficiently is not really the right word here -- it basically creates a byte string using a pointer to an existing block of memory,

[racket-dev] Very quick poll re `string-trim'

2012-05-11 Thread Eli Barzilay
Should (string-trim str sep) remove any number of `sep' matches or just one? (This makes no difference for the default `sep' since it's #px\\s+.) Possible options below, feel free to mail me off-list to reduce noise. 1. Yes. * Advantage: makes life with string separator a bit easier. For

Re: [racket-dev] Very quick poll re `string-trim'

2012-05-11 Thread Robby Findler
Did you consider an optional argument to string-trim? Robby On Fri, May 11, 2012 at 6:53 AM, Eli Barzilay e...@barzilay.org wrote: Should (string-trim str sep) remove any number of `sep' matches or just one?  (This makes no difference for the default `sep' since it's #px\\s+.)  Possible

Re: [racket-dev] Very quick poll re `string-trim'

2012-05-11 Thread Eli Barzilay
An hour and a half ago, Robby Findler wrote: Did you consider an optional argument to string-trim? Yes, but it seems that if you're moving from (string-trim stuff ) to some (string-trim stuff #:repeated? #t) then you could just as well go with (string-trim stuff #rx +) instead.

Re: [racket-dev] Very quick poll re `string-trim'

2012-05-11 Thread Matthias Felleisen
The question you need to ask is whether you want string-trim to be usable by someone who is not familiar with our syntax (or any syntax) of regexp, which is an embedded sublanguage with a definitely complex and somewhat obscure syntax. -- Matthias On May 11, 2012, at 9:56 AM, Eli Barzilay

[racket-dev] match syntax-parse

2012-05-11 Thread stefan . israelsson
Hi, I have done two interseting things. 1. Ported syntax-parse over to guile. 2. Implemented racket's match completely with the help of syntax parse. Comments about 1. I found that the lack of possibility to define two syntax classes that referese to each other inferior to what can be done

Re: [racket-dev] Very quick poll re `string-trim'

2012-05-11 Thread Neil Toronto
I would say yes. Isn't this primarily a string function? How about a #:repeated? argument that defaults to #t? Neil ⊥ On 05/11/2012 08:38 AM, Matthias Felleisen wrote: The question you need to ask is whether you want string-trim to be usable by someone who is not familiar with our syntax

Re: [racket-dev] match syntax-parse

2012-05-11 Thread Matthias Felleisen
On May 11, 2012, at 9:45 AM, stefan.israels...@se.abb.com wrote: 1. Ported syntax-parse over to guile. 2. Implemented racket's match completely with the help of syntax parse. This is really good to hear. Comments about 1. i propose instead to add syntax-class-set! and

Re: [racket-dev] A few suggestions on indentation and DrRacket graphical syntax

2012-05-11 Thread Neil Toronto
On 05/09/2012 02:18 AM, Laurent wrote: From the guide: Caveat 1: Until language specifications come with fixed indentation rules, we need to use the default settings of DrRacket’s indentation for this rule to make sense. Maybe a special submodule like drracket-indentation with declarations

Re: [racket-dev] A few suggestions on indentation and DrRacket graphical syntax

2012-05-11 Thread Eli Barzilay
5 hours ago, Neil Toronto wrote: On 05/09/2012 02:18 AM, Laurent wrote: From the guide: Caveat 1: Until language specifications come with fixed indentation rules, we need to use the default settings of DrRacket’s indentation for this rule to make sense. Maybe a special submodule like