Re: [racket-users] modifying readtable entry for `(` breaks reading #hash() ?

2015-04-16 Thread Alexander D. Knauth
Thanks! On Apr 15, 2015, at 2:55 PM, Matthew Flatt wrote: > After further experiments, I think trying to generalize too much here > is a bad idea. I'll just change the way `read/recursive` uses the given > readtable to make it more sensible and work for your example. > > Although I was initiall

RE: [racket-users] receiving a copy of my own mails to racket-users@googlegroups.com

2015-04-16 Thread Jos Koot
Hi John Clements, I have looked in google settings, but sofar found no option for my wish. I had a look in google support but found nothing either. I'll look further. If I find somethink useful, I'll report that. Thanks, Jos Koot -Original Message- From: John Clements [mailto:cleme...@br

RE: [racket-users] literals within syntax-transfromer within syntax-transformer

2015-04-16 Thread Jos Koot
Hi Jens Axel Thanks very much. That works perfectly. I already guessed that I was confusing contexts, but did not realize how simply with-syntax and datum->syntax can solve this problem. Stupid me, for I have used with-syntax and datum->syntax before. Syntax-case and its helpers (like with-syntax

Re: [racket-users] prop:procedure, prop:match-expander, and contract blame

2015-04-16 Thread Jon Zeppieri
On Thu, Apr 16, 2015 at 8:02 AM, Jon Zeppieri wrote: > On Thu, Apr 16, 2015 at 7:32 AM, Alexander D. Knauth > wrote: >> By the way, why wouldn’t you just use define-match-expander instead of >> defining the B struct? >> >> > > Because I need the same identifier to expand either to a procedure or

Re: [racket-users] Organizing tests

2015-04-16 Thread 'John Clements' via users-redirect
On Apr 16, 2015, at 3:17 AM, Konrad Hinsen wrote: > I am looking for an approach that lets me run either all tests in my > collection, or convenient subsets (e.g. one module), ideally using a > single tool such as "raco test". Any suggestions? You get bonus points > for solutions that integrate

Re: [racket-users] receiving a copy of my own mails to racket-users@googlegroups.com

2015-04-16 Thread 'John Clements' via Racket Users
On Apr 16, 2015, at 7:39 AM, Jos Koot wrote: > Hi > > I receive e-mails from racket-users@googlegroups.com. > However, when I send an e-mail to racket-users@googlegroups.com I don't > receive my own e-mail. > Not a big problem. For the moment I include myself as CC. > Any idea how to fix this

Re: [racket-users] Organizing tests

2015-04-16 Thread Matthias Felleisen
Use different names for the various test modules. At the local level, you can use module+ test. For the integration tests, you may wish to use module+ integration. Then run raco test with the parameter that takes the name of the submodule you want. (If you really want to run unit tests together

Re: [racket-users] literals within syntax-transfromer within syntax-transformer

2015-04-16 Thread Jens Axel Søgaard
The literals in the syntax-case expression needs to have the same context as the identifiers used in the expressions where try is used. #lang racket (require (for-syntax racket)) (define-syntax (try stx) (define-syntax (stx-case stx) (syntax-case stx () ((_ stx-expr clause ...)

[racket-users] receiving a copy of my own mails to racket-users@googlegroups.com

2015-04-16 Thread Jos Koot
Hi I receive e-mails from racket-users@googlegroups.com. However, when I send an e-mail to racket-users@googlegroups.com I don't receive my own e-mail. Not a big problem. For the moment I include myself as CC. Any idea how to fix this? Thanks, Jos Koot -- You received this message because you

[racket-users] literals within syntax-transfromer within syntax-transformer

2015-04-16 Thread Jos Koot
Probably I am mixing literal identifiers from distinct expansion phases. Nevertheless, I don't understand the behaviour of the program below. Explanation would be very welcome. I have looked into the expanded code with the macro stepper, but I could not find any code looking for the literals. #la

Re: [racket-users] prop:procedure, prop:match-expander, and contract blame

2015-04-16 Thread Jon Zeppieri
On Thu, Apr 16, 2015 at 7:32 AM, Alexander D. Knauth wrote: > > >>> On Apr 15, 2015, at 2:29 PM, Jon Zeppieri wrote: >>> I'm trying to provide a struct, the struct type of which uses prop:procedure and prop:match-expander, and I'd like the procedure to have a contract. > > >>> On A

Re: [racket-users] raco make, file permissions, and unstable directories

2015-04-16 Thread Matthew Flatt
A potential problem with copying files is that the timestamps can get out of sync. You'll want to make sure that timestamps on the ".zo" files stay newer than the timestamps on the ".rkt" sources. At Thu, 16 Apr 2015 02:03:31 -0500, Robby Findler wrote: > 1) Compilation to .zo files (what raco mak

Re: [racket-users] prop:procedure, prop:match-expander, and contract blame

2015-04-16 Thread Alexander D. Knauth
>> On Apr 15, 2015, at 2:29 PM, Jon Zeppieri wrote: >> >>> I'm trying to provide a struct, the struct type of which uses >>> prop:procedure and prop:match-expander, and I'd like the procedure to >>> have a contract. >> On Apr 15, 2015, at 10:12 PM, Jon Zeppieri wrote: >> >>> It's an instanc

[racket-users] Organizing tests

2015-04-16 Thread Konrad Hinsen
Hi everyone, I want to put some order into my tests, but after looking at various published Racket packages, I am not sure if there any accepted "best practices". For a single module, the best approach seems to be a submodule "test" for the test cases, which are then run by "raco test". That's ni

Re: [racket-users] raco make, file permissions, and unstable directories

2015-04-16 Thread Robby Findler
1) Compilation to .zo files (what raco make does) can theoretically embed absolute paths, but this is something we work hard to avoid, so it shouldn't be happening. We use the ability to move .zo files around when building our distributions, for example, so I think you should be safe. (But there ca