Thanks for your reply,
I think I prefer the latter approach.
--
You received this message because you are subscribed to the Google Groups
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more
On Thursday, July 14, 2016 at 10:28:07 PM UTC-7, mattap...@gmail.com wrote:
> On Friday, July 15, 2016 at 2:22:50 PM UTC+10, Jack Firth wrote:
> > I've got a macro that extends function definition by letting the user
> > rebind some identifiers with different values, which are then only
> > avail
On Friday, July 15, 2016 at 2:22:50 PM UTC+10, Jack Firth wrote:
> I've got a macro that extends function definition by letting the user rebind
> some identifiers with different values, which are then only available in a
> certain context. For the sake of simplicity suppose it looks like this:
>
On Jul 14, 2016, at 1:50 AM, 'Thomas Prebeck' via Racket Users
wrote:
> Hi I want to do something like this:
>
> (define test "(1,2,3)(4,5,6)(7,8,9)")
>
> (define (convert m)
> (for/list ([i (cdr m)])
>(string->number i)))
>
> (regexp-match* #rx"([^,\\(\\)]*),([^,\\(\\)]),([^,\\(\\)])" t
I've got a macro that extends function definition by letting the user rebind
some identifiers with different values, which are then only available in a
certain context. For the sake of simplicity suppose it looks like this:
(define/foo (func v ...)
#:bind [helper1 expr]
#:bind [helper2 other
> I've noticed that if it can refer to a module-level immutable variable,
> `eval` seems to know that it's immutable. So is there any way to define a new
> variable as immutable in a namespace?
>
I believe box-immutable isn't what you're looking for, or would be too obvious
an answer?
(eval
> On Jul 14, 2016, at 5:11 PM, Matthew Flatt wrote:
>
> At Thu, 14 Jul 2016 16:01:52 -0400, Alex Knauth wrote:
>> Ok, by using `syntax-debug-info` I was able to get somewhere. However, I
>> want
>> to make the variables I'm putting into the namespace all immutable. For that
>> I
>> thought I
At Thu, 14 Jul 2016 16:01:52 -0400, Alex Knauth wrote:
> Ok, by using `syntax-debug-info` I was able to get somewhere. However, I want
> to make the variables I'm putting into the namespace all immutable. For that
> I
> thought I could use `define-syntax` within `eval`, but `define-syntax`
> ap
Ok, by using `syntax-debug-info` I was able to get somewhere. However, I want
to make the variables I'm putting into the namespace all immutable. For that I
thought I could use `define-syntax` within `eval`, but `define-syntax` appears
to not have any effect:
#lang racket/base
(require (for-syn
Hi I want to do something like this:
(define test "(1,2,3)(4,5,6)(7,8,9)")
(define (convert m)
(for/list ([i (cdr m)])
(string->number i)))
(regexp-match* #rx"([^,\\(\\)]*),([^,\\(\\)]),([^,\\(\\)])" test #:match-select
convert)
But that fails because the matches are represented as pairs
10 matches
Mail list logo