On Oct 25, 2014, at 12:09 AM, Alexander D. Knauth wrote:
>
> On Oct 24, 2014, at 11:56 PM, Alexander D. Knauth
> wrote:
>
>> Do you mean something like this?:
>>
>> (provide (rename-out [-#%module-begin #%module-begin]))
>>
>> (define-syntax-rule (-#%module-begin form ...)
>> (#%module-b
On Oct 24, 2014, at 11:56 PM, Alexander D. Knauth wrote:
> Do you mean something like this?:
>
> (provide (rename-out [-#%module-begin #%module-begin]))
>
> (define-syntax-rule (-#%module-begin form ...)
> (#%module-begin
>(module configure-runtime racket/base
> (current-prompt-read
Do you mean something like this?:
(provide (rename-out [-#%module-begin #%module-begin]))
(define-syntax-rule (-#%module-begin form ...)
(#%module-begin
(module configure-runtime racket/base
(current-prompt-read
(let ([old-prompt-read (current-prompt-read)])
(lambda ()
I think a `configure-runtime` submodule (in the expansion of any module
using the language) is the right place for this kind of configuration.
The `configure-runtime` submodule is similar to `main`, it that it is
only used when the enclosing module is the main module of a program.
Instead of a di
Is there a way to specify a reader for the repl for a language?
One bad way to do this would be to modify #%module-begin to include
(current-readtable (make-readtable-for-my-lang))
or something like that.
See
https://github.com/greghendershott/rackjure/pull/46
https://github.com/greghendershott/ra
This worked — for some reason, moving the '(file ...)' expression into the
`with-syntax` expression made a difference.
(define-syntax (overriding-require+provide-with-prefix stx)
(syntax-case stx () [(_ main override out-prefix)
(let ([path-to-override (path->string (build
I know that a hard-coded absolute path can be used in `require`:
(require (file "/path/to/directory/module.rkt"
But how can a generated path be used? Like so:
(require (file (path->string (build-path (current-directory) "module.rkt"
In particular, I want to `require` the file if it exis
I pushed a fix.
Thanks for the report!
Vincent
At Thu, 23 Oct 2014 21:27:01 -0400,
Stephen Chang wrote:
>
> The docs for set-symmetric-difference (and the mutable version) says:
>
> "Produces a set of the same type as st0 that includes all of the
> elements contained an even number of times
Hi all,
I wonder if anyone has experience in or pointers to using Racket with
OpenStack? Particularly, I'm currently interested in client-side object
storage (Swift) interfacing and server-side middleware scripting.
E.g. I'm trying to figure out the most efficient way to PUT/GET Racket
objects s
This has been fixed in the pre-release version of Racket:
http://pre.racket-lang.org/ and will be included in our next release.
Robby
On Sun, Oct 19, 2014 at 2:10 AM, wrote:
> I can’t run DrRacket v6.1 on my MacBook Air after i update my OS X to final
> Yosemite.
>
> Process: Dr
On Oct 24, 2014, at 6:11 AM, Joan Arnaldich wrote:
> Hi there,
>
> I stumbled upon this thread when searching for generics. I really like
> Alexander's solution, but if I understand it correctly, the my-match-lambda-
> append function should read something like:
>
> (define my-match-lambda-ap
Hi there,
I stumbled upon this thread when searching for generics. I really like
Alexander's solution, but if I understand it correctly, the my-match-lambda-
append function should read something like:
(define my-match-lambda-append
(case-lambda
[() (case-lambda)]
[(f1 . f2) (lambda ar
12 matches
Mail list logo