Re: [racket-users] parameterize working across dynamic-require and phase change

2016-12-07 Thread Robby Findler
Or another hack: put the parameter's value in teh filesystem and use parameter guards to fish it out of there. This would be useful only if you consider it temporary tho. :) Robby On Wed, Dec 7, 2016 at 2:09 PM, Matthew Flatt wrote: > At Wed, 7 Dec 2016 12:01:24 -0800 (PST), Dan Liebgold wrote

Re: [racket-users] parameterize working across dynamic-require and phase change

2016-12-07 Thread Matthew Flatt
At Wed, 7 Dec 2016 12:01:24 -0800 (PST), Dan Liebgold wrote: > On Tuesday, December 6, 2016 at 5:00:47 PM UTC-8, Robby Findler wrote: > > > > Perhaps there is another way to achieve the effect you want in a way > > that is more friendly to creating .zo files? > > > > Yes, this is the crux of the

Re: [racket-users] parameterize working across dynamic-require and phase change

2016-12-07 Thread Dan Liebgold
On Tuesday, December 6, 2016 at 5:00:47 PM UTC-8, Robby Findler wrote: > > Perhaps there is another way to achieve the effect you want in a way > that is more friendly to creating .zo files? > Yes, this is the crux of the issue. In my case I have a system that deals with modules that may or may

Re: [racket-users] Why are hash and make-hash not symmetric?

2016-12-07 Thread David Storrs
Thank you, Spencer and Matthew both. That gives me enough to go on with. On Wed, Dec 7, 2016 at 9:59 AM, Matthew Flatt wrote: > Maybe there's some technical reason that I've forgotten, but I think > it's just that `hash` is newer and was an experiment toward a better > interface. A `mutable-ha

Re: [racket-users] Why are hash and make-hash not symmetric?

2016-12-07 Thread Matthew Flatt
Maybe there's some technical reason that I've forgotten, but I think it's just that `hash` is newer and was an experiment toward a better interface. A `mutable-hash` function would make sense, as far as I can tell. Meanwhile, something like `(hash-copy (hash 'a 1 'b 2))` might be the most convenie

Re: [racket-users] Why are hash and make-hash not symmetric?

2016-12-07 Thread Spencer Florence
For symmetry there is "make-immutable-hash", which is like "hash" but has the interface of "make-hash". (I don't know why "hash" is the way it is though). --spencer On Wed, Dec 7, 2016 at 10:49 AM David Storrs wrote: > -> (hash 'a 1 'b 2) > '#hash((a . 1) (b . 2)) > > -> (make-hash '((a . 1) (b

[racket-users] Why are hash and make-hash not symmetric?

2016-12-07 Thread David Storrs
-> (hash 'a 1 'b 2) '#hash((a . 1) (b . 2)) -> (make-hash '((a . 1) (b . 2))) '#hash((b . 2) (a . 1)) -> (make-hash 'a 1 'b 2) (make-hash 'a 1 'b 2) ; make-hash: arity mismatch; ; the expected number of arguments does not match the given number ; expected: 0 to 1 ; given: 4 ; [,bt for contex

Re: [racket-users] parameterize working across dynamic-require and phase change

2016-12-07 Thread Matthias Felleisen
My initial reaction would be to explicitly split “module.rkt” into two pieces: — its compile-time code especially an exported parameter a — its run-time code, which uses the same parameter Your client module could then require each piece at the correct phase. This also ought to work with the