Sure you COULD do that, but app is so cool, I just like the way it looks.
Also, Sam, I've thought more about this and I've definitely made the
assumption that the "and" pattern evaluates left to right. For
example, in the bidirectional matchers that are underneath the URL
dispatch library, I assum
Why wouldn't you write that match like this:
(match ..
[`(+ ,lhs ,rhs) (make-plus (parse lhs) (parse rhs))]
[`(fun (,(? symbol arg) ...) ,body) (make-fun arg (parse body))])
Robby
On Wed, Oct 5, 2011 at 9:48 PM, Jay McCarthy wrote:
> Okay. I think it is strange, but feel free to do that and
Okay. I think it is strange, but feel free to do that and revert my
change. Apologies for the confusion.
The use case I was actually doing was like this:
[(list '+ (app parse lhs) (app parse rhs))
...]
[(list 'fun (list (? symbol? arg) ...) (app parse body))
...]
And when you gave it a '(fun (
On Wed, Oct 5, 2011 at 5:13 PM, Jay McCarthy wrote:
>
> Basically, it calls the app function on the second element of the list
> even though the head of the list has failed to pattern match.
This is not a bug. `match' makes no guarantee about the order in
which it checks elements of the pattern.
On 10/05/2011 03:25 PM, John Clements wrote:
On Oct 5, 2011, at 9:45 AM, Neil Toronto wrote:
I've just pushed the new 'plot' library.
Eli and I both forgot that the new 'plot' still needs the old libfit, and removed it along with
libplplot. I just added libfit back (the sources are in "src/f
On 10/05/2011 02:36 PM, Neil Toronto wrote:
On 10/05/2011 01:44 PM, Ryan Culpepper wrote:
On 10/05/2011 01:13 PM, ntoro...@racket-lang.org wrote:
ntoronto has updated `master' from e1a82481d1 to 32d789d4f8.
http://git.racket-lang.org/plt/e1a82481d1..32d789d4f8
[...]
; fit-int : (number* -> numb
I've tracked the problem down to reorder-columns.
There are no test cases anywhere for reorder-columns and the code has
no comments on its purpose, so I'm not sure how to fix it.
It seems that the presence of Null and Dummy in the parse of the
pattern causes the app to be lifted out, but I can't
On Oct 5, 2011, at 9:45 AM, Neil Toronto wrote:
> I've just pushed the new 'plot' library.
>
> Eli and I both forgot that the new 'plot' still needs the old libfit, and
> removed it along with libplplot. I just added libfit back (the sources are in
> "src/fit" now instead of "src/plot/fit") al
I found an interesting error in racket/match in my 330 class this afternoon.
(test-case "app pattern"
(check = 4 (match 3 [(app add1 y) y])))
(test-case "app pattern (step 1)"
(check = 2 (match (list 1 3)
[(list 0 (app add1 y)) y]
YESSS! And since I'm on the ball today, there should be a "porting" doc
page and everything.
I'm seriously looking forward to helping you port the science collection
and getting your reactions to the new library.
Neil T
On 10/05/2011 02:47 PM, Doug Williams wrote:
Does this mean it will it
On 10/05/2011 02:07 PM, Robby Findler wrote:
Looks like I spoke too quickly. I think I'm actually not going to be
much help with this.
In particular, I don't know what mix does and I can't figure out from
the docs, so I don't know what it means to replace 'mix' with 'list'.
I can try again if yo
Does this mean it will it be in the next 'nightly' build?
On Wed, Oct 5, 2011 at 10:45 AM, Neil Toronto wrote:
> I've just pushed the new 'plot' library.
>
> Eli and I both forgot that the new 'plot' still needs the old libfit, and
> removed it along with libplplot. I just added libfit back (the
On 10/05/2011 01:44 PM, Ryan Culpepper wrote:
On 10/05/2011 01:13 PM, ntoro...@racket-lang.org wrote:
ntoronto has updated `master' from e1a82481d1 to 32d789d4f8.
http://git.racket-lang.org/plt/e1a82481d1..32d789d4f8
[...]
; fit-int : (number* -> number) (list-of (symbol number)) (list-of
(vecto
On Wed, Oct 5, 2011 at 12:43 PM, Neil Toronto wrote:
> There aren't any porting docs, and that would be really helpful. So yes,
> please!
>
> These 'plot' doc pages are finished:
> - PLoT: Graph Plotting (main page)
> - Introduction
> - 2D Plot Procedures
> - 3D Plot Procedures
> - Compatibil
On 10/05/2011 01:13 PM, ntoro...@racket-lang.org wrote:
ntoronto has updated `master' from e1a82481d1 to 32d789d4f8.
http://git.racket-lang.org/plt/e1a82481d1..32d789d4f8
[...]
; fit-int : (number* -> number) (list-of (symbol number)) (list-of (vector
number [number] number number)) ->
In the language I use in my class, I offer
require:
only-in except-in prefix-in rename-in combine-in planet
provide:
all-defined-out all-from-out rename-out except-out
prefix-out struct-out combine-out protect-out
and my students use most of these. I am not aware of a student ev
On Oct 5, 2011, at 12:20 PM, John Clements wrote:
> Would it be difficult to support the shorter
>
> (require (planet clements/rsound))
>
> syntax in the student languages?
For that matter, is there any good reason to restrict the syntax of "require"
at ALL in student languages? I mean, it's
On Oct 5, 2011, at 12:20 PM, John Clements wrote:
> I'm using the rsound planet package in beginning student languages, and
> requiring them to type
>
> (require (planet "main.rkt" ("clements" "rsound.plt 2 6")))
>
> at the top of every file is a bit painful.
>
> Would it be difficult to sup
On Oct 5, 2011, at 11:39 AM, Robby Findler wrote:
>> It seems to me that the only time anybody [rational] does a Check Syntax is
>> just after changing something in the Definitions pane, so anything that was
>> in the Interactions pane is now invalid, just as though they had clicked
>> "Run".
There aren't any porting docs, and that would be really helpful. So yes,
please!
These 'plot' doc pages are finished:
- PLoT: Graph Plotting (main page)
- Introduction
- 2D Plot Procedures
- 3D Plot Procedures
- Compatibility Module
Reading over the finished pages should help you a lot.
T
I believe that this is something that's long been asked for and
amounts to lifting a restriction in the current teaching language
implementation (and then presumably auditing the error messages).
Robby
On Wed, Oct 5, 2011 at 11:20 AM, John Clements
wrote:
> I'm using the rsound planet package in
Thanks, Neil!
Is there some docs to help people port?
If not, would it be helpful for me to read over the plot and
plot/compat library and try to put such docs together?
Robby
On Wed, Oct 5, 2011 at 11:45 AM, Neil Toronto wrote:
> I've just pushed the new 'plot' library.
>
> Eli and I both for
I've just pushed the new 'plot' library.
Eli and I both forgot that the new 'plot' still needs the old libfit,
and removed it along with libplplot. I just added libfit back (the
sources are in "src/fit" now instead of "src/plot/fit") along with the
proper configure, Makefile.in, and get-libs.r
Yes, please!
--- nadeem
On Wed, Oct 5, 2011 at 12:20 PM, John Clements
wrote:
> I'm using the rsound planet package in beginning student languages, and
> requiring them to type
>
> (require (planet "main.rkt" ("clements" "rsound.plt 2 6")))
>
> at the top of every file is a bit painful.
>
> Woul
I'm using the rsound planet package in beginning student languages, and
requiring them to type
(require (planet "main.rkt" ("clements" "rsound.plt 2 6")))
at the top of every file is a bit painful.
Would it be difficult to support the shorter
(require (planet clements/rsound))
syntax in the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 10/04/11 20:59, Matthew Flatt wrote:
> I think I found the problem. Can you try the latest version?
Thanks Matthew, everything seems to work now.
> At Tue, 04 Oct 2011 09:42:53 +0200, Marijn wrote: On 10/03/11
> 17:07, Matthew Flatt wrote:
At
26 matches
Mail list logo