Re: [racket-users] macros and let/cc

2019-06-03 Thread Kevin Forchione
> On Jun 3, 2019, at 9:42 AM, Matthias Felleisen wrote: > > > >> On Jun 3, 2019, at 12:33 PM, Kevin Forchione wrote: >> >> Oh! I see! That solves the expansio issue! Wonderful. You’ve opened up a >> whole new set of possibilities for me. Thanks, Matthias. > > > I am glad I sent my

Re: [racket-users] macros and let/cc

2019-06-03 Thread Matthias Felleisen
> On Jun 3, 2019, at 12:33 PM, Kevin Forchione wrote: > > Oh! I see! That solves the expansio issue! Wonderful. You’ve opened up a > whole new set of possibilities for me. Thanks, Matthias. I am glad I sent my solution a second time :) -- You received this message because you are

Re: [racket-users] macros and let/cc

2019-06-03 Thread Kevin Forchione
> On Jun 3, 2019, at 9:09 AM, Matthias Felleisen wrote: > > > Or, > > #lang racket > > (require (for-syntax ) racket/stxparam) > > (define-syntax-parameter return (syntax-rules ())) > (define-syntax-parameter false (syntax-rules ())) > > (define-syntax fn > (syntax-rules () > [(_ (arg

Re: [racket-users] macros and let/cc

2019-06-03 Thread Matthias Felleisen
Or, #lang racket (require (for-syntax ) racket/stxparam) (define-syntax-parameter return (syntax-rules ())) (define-syntax-parameter false (syntax-rules ())) (define-syntax fn (syntax-rules () [(_ (arg ...) body ...) (λ (arg ...) (let/cc fn-exit (syntax-parameterize

Re: [racket-users] macros and let/cc

2019-06-03 Thread Matthias Felleisen
#lang racket (require (for-syntax ) racket/stxparam) (define-syntax-parameter return (syntax-rules ())) (define-syntax fn (syntax-rules () [(_ (arg ...) body ...) (λ (arg ...) (let/cc fn-exit (syntax-parameterize ([return (syntax-rules () [(_ x) (fn-exit x)])])

Re: [racket-users] macros and let/cc

2019-06-03 Thread Kevin Forchione
> On Jun 3, 2019, at 8:51 AM, Matthias Felleisen wrote: > > > My code run your examples. Whay is missinng? > Here’s what I’ve been trying to run. #lang racket (require (for-syntax racket/syntax) racket/stxparam) (define-syntax-parameter false (lambda (stx)

Re: [racket-users] macros and let/cc

2019-06-03 Thread Matthias Felleisen
My code run your examples. Whay is missinng? > On Jun 3, 2019, at 11:36 AM, Kevin Forchione wrote: > > > >> On Jun 3, 2019, at 4:54 AM, Alex Knauth wrote: >> >> >> >>> On Jun 3, 2019, at 1:02 AM, Kevin Forchione wrote: On Jun 2, 2019, at 7:13 PM, Matthias Felleisen

Re: [racket-users] macros and let/cc

2019-06-03 Thread Kevin Forchione
> On Jun 3, 2019, at 4:54 AM, Alex Knauth wrote: > > > >> On Jun 3, 2019, at 1:02 AM, Kevin Forchione > > wrote: >>> On Jun 2, 2019, at 7:13 PM, Matthias Felleisen >> > wrote: On Jun 2, 2019, at 9:41 PM, Kevin Forchione >>>

Re: [racket-users] macros and let/cc

2019-06-03 Thread Alex Knauth
> On Jun 3, 2019, at 1:02 AM, Kevin Forchione wrote: >> On Jun 2, 2019, at 7:13 PM, Matthias Felleisen > > wrote: >>> On Jun 2, 2019, at 9:41 PM, Kevin Forchione >> > wrote: >>> >>> Hi guys, >>> I’ve been working with macros and let/cc

Re: [racket-users] macros and let/cc

2019-06-02 Thread Kevin Forchione
> On Jun 2, 2019, at 7:13 PM, Matthias Felleisen wrote: > > > >> On Jun 2, 2019, at 9:41 PM, Kevin Forchione > > wrote: >> >> Hi guys, >> I’ve been working with macros and let/cc and have a situation where I have >> the 2nd macro bound to the let/cc return of the

Re: [racket-users] macros and let/cc

2019-06-02 Thread Matthias Felleisen
> On Jun 2, 2019, at 9:41 PM, Kevin Forchione wrote: > > Hi guys, > I’ve been working with macros and let/cc and have a situation where I have > the 2nd macro bound to the let/cc return of the first. No idea how I’d do > that, but here’s an example of what I’m attempting to do: > > #lang

[racket-users] macros and let/cc

2019-06-02 Thread Kevin Forchione
Hi guys, I’ve been working with macros and let/cc and have a situation where I have the 2nd macro bound to the let/cc return of the first. No idea how I’d do that, but here’s an example of what I’m attempting to do: #lang racket (require (for-syntax racket/syntax)) (define-syntax (fn stx)