Re: [racket-users] Questions about multiple Racket installations...

2021-04-14 Thread 'William J. Bowman' via Racket Users
I use this: https://github.com/takikawa/racket-dev-goodies When I need to switch, I just change PLTHOME to the right directory. -- William J. Bowman On Wed, Apr 14, 2021 at 11:06:15AM -0700, Don Green wrote: > I have several versions of Racket installed. > Is there a way to switch between usin

[racket-users] Questions about multiple Racket installations...

2021-04-14 Thread Don Green
I have several versions of Racket installed. Is there a way to switch between using one version and another? Example: use Racket 8 then switch back to using Racket 7. If there is no point in going back to a previous version, is there merit in removing older versions. Thanks. Don. -- You rec

Re: [racket-users] Questions Regarding My First Program

2021-02-23 Thread 'John Clements' via Racket Users
I *always* use DrRacket… but I admit I may not understand the indenting part of your question. In DrRacket, when you hit the “tab” key, it should move the text on the line to the “correct” position, according to Racket’s indentation rules. Also, whenever you hit return, the cursor should be au

Re: [racket-users] Questions Regarding My First Program

2021-02-23 Thread Sage Gerard
I can't speak to DrRacket since I never use it, so I'll focus more on the first question. Functional programming typically deals with these considerations (among others): - Write functions that return values purely in terms of arguments. - Defer side-effects until you can't. A goal to make the

[racket-users] Questions Regarding My First Program

2021-02-23 Thread IF Karona
Hi everyone, I am new here, and I have a couple of questions related to the code that follows this message. 1. I want to learn functional programming. When it comes to solving the problem of making a simple chatbot such as this, is there an approach that is more consistent with functional prog

Re: [racket-users] Questions

2020-11-24 Thread Nate Griswold
Please ignore that last sentence. Nate On Tue, Nov 24, 2020 at 4:59 AM Nate Griswold wrote: > Very helpful. > > I have modified my code to use callbacks and everything is working as > expected. It is interesting that everything was working fine with my > racket_apply and racket_eval hacks, as

Re: [racket-users] Questions

2020-11-24 Thread Nate Griswold
Very helpful. I have modified my code to use callbacks and everything is working as expected. It is interesting that everything was working fine with my racket_apply and racket_eval hacks, as well. I have gotten my communication with racket down to one put and one get closure, wrapping a call to

Re: [racket-users] Questions

2020-11-23 Thread Matthew Flatt
At Mon, 23 Nov 2020 00:14:56 -0600, Nate Griswold wrote: > Hello. I have a few questions: > > 1) Why do the docs say that racket_eval and racket_apply eval and apply in > the “initial” or “original” racket thread? I have verified that the thread > id returned from pthread_self when using racket_ap

[racket-users] Questions

2020-11-22 Thread Nate Griswold
Hello. I have a few questions: 1) Why do the docs say that racket_eval and racket_apply eval and apply in the “initial” or “original” racket thread? I have verified that the thread id returned from pthread_self when using racket_apply in c code called from a racket place is different from the thre

Re: [racket-users] Questions about working on DrRacket and gui

2020-06-21 Thread Yuki Lee
If you wrote a note or blog while reading the code, please share it with me, thank you. 在 2020年5月6日星期三 UTC+8下午5:50:42,Dexter Lagan写道: > > Couple years ago I developed an IDE for NewLISP called NewIDE using a > commercial tool called Xojo. It was supposed to become NewLISP's official > IDE. I

Re: [racket-users] Questions about working on DrRacket and gui

2020-05-06 Thread Dexter Lagan
;> Cheers, >> >> >> >> Dex >> >> >> >> From: Robby Findler >> Sent: Tuesday, May 5, 2020 6:18 PM >> To: Gustavo Massaccesi >> Cc: Dexter Lagan ; Matthew Flatt >> ; Racket Users >> Subject: Re: [racket-users]

Re: [racket-users] Questions about working on DrRacket and gui

2020-05-06 Thread Gustavo Massaccesi
f, and I’m enjoying > this very much. > > > > Cheers, > > > > Dex > > > > *From:* Robby Findler > *Sent:* Tuesday, May 5, 2020 6:18 PM > *To:* Gustavo Massaccesi > *Cc:* Dexter Lagan ; Matthew Flatt < > mfl...@cs.utah.edu>; Racket Users >

RE: [racket-users] Questions about working on DrRacket and gui

2020-05-06 Thread Dexter Lagan
detects symbols. I have the day off, and I’m enjoying this very much. Cheers, Dex From: Robby Findler Sent: Tuesday, May 5, 2020 6:18 PM To: Gustavo Massaccesi Cc: Dexter Lagan ; Matthew Flatt ; Racket Users Subject: Re: [racket-users] Questions about working on DrRacket and gui

Re: [racket-users] Questions about working on DrRacket and gui

2020-05-06 Thread Dexter Lagan
To add to my previous message, I know and understand that DrRacket and GUI are very complex. I've been going over unit.rkt. Yeah it's a lot of code. But it's not as bad as I thought. I'm just offering a hand in making sense of it all. With enough time and patience I'm sure I'll get something out

Re: [racket-users] Questions about working on DrRacket and gui

2020-05-06 Thread Dexter Lagan
Couple years ago I developed an IDE for NewLISP called NewIDE using a commercial tool called Xojo. It was supposed to become NewLISP's official IDE. I had to put the project on pause because of work and family, and at the same time I switched to Racket, hence my interest. It had replicated most o

Re: [racket-users] Questions about working on DrRacket and gui

2020-05-05 Thread Robby Findler
On Tue, May 5, 2020 at 10:36 AM Gustavo Massaccesi wrote: > I try to encourage people to participate, but be careful because this task > is probably too big for a first contribution. GUI is difficult, DrRacket > has a lot of moving parts, and opening DrRacket inside DrRacket is possible > but wei

Re: [racket-users] Questions about working on DrRacket and gui

2020-05-05 Thread Gustavo Massaccesi
I try to encourage people to participate, but be careful because this task is probably too big for a first contribution. GUI is difficult, DrRacket has a lot of moving parts, and opening DrRacket inside DrRacket is possible but weird. I think the guess of Matthew is correct, it´s a problem with th

Re: [racket-users] Questions about working on DrRacket and gui

2020-05-01 Thread Matthew Flatt
At Fri, 1 May 2020 16:59:22 +0200, Dexter Lagan wrote: > I'd like to download DrRacket's source and profile it, say to improve > scrolling performance or track this post-startup lock-up : Does the start-time delay happen if you just type a number and hit return, as opposed to typing an identifie

Re: [racket-users] Questions about working on DrRacket and gui

2020-05-01 Thread Dexter Lagan
Thanks I’ll look into this. Dex > On May 1, 2020, at 5:03 PM, Sorawee Porncharoenwase > wrote: > >  > Sam just suggested me in the other email thread that a much easier way to do > things is to download and install Minimal Racket, then install DrRacket from > source. > >> On Fri, May 1,

Re: [racket-users] Questions about working on DrRacket and gui

2020-05-01 Thread Sorawee Porncharoenwase
Sam just suggested me in the other email thread that a much easier way to do things is to download and install Minimal Racket, then install DrRacket from source. On Fri, May 1, 2020 at 7:59 AM Dexter Lagan wrote: > Hi, > > I apologize in advance if my questions are naïve or have been asked > p

[racket-users] Questions about working on DrRacket and gui

2020-05-01 Thread Dexter Lagan
Hi, I apologize in advance if my questions are naïve or have been asked previously. I read the 'Building Racket from Source' guide and couldn't find answers to some specific questions. I'm new to Git. I'd like to download DrRacket's source and profile it, say to improve scrolling performance

Re: [racket-users] questions about top-level-bind-scope in root-expand-context

2020-03-31 Thread Yongming Shen
I have done some further digging. Looks like it is non-trivial to remove the top-level-bind-scope and still preserve the current behaviors of top-level `define-values` and `define-syntaxes`. In particular, through `as-expand-time-top-level-bindings` in "expander/expand/bind-top.rkt", both top-l

Re: [racket-users] questions about top-level-bind-scope in root-expand-context

2020-03-23 Thread Yongming Shen
Hi Matthew, Thanks for the explanations. But I'm still not convinced that the top-level-bind-scope is needed. This is my current understanding. The purpose of the top-level-bind-scope is to support recursion better at the top level. But for the case of `(define-values (x) ...)`, if `x` is not

Re: [racket-users] questions about top-level-bind-scope in root-expand-context

2020-03-23 Thread Alexis King
> On Mar 23, 2020, at 13:46, George Neuner wrote: > > I've run into this problem before ... I don't recall the official > explanation, but my takeaway was that Racket does not permit you to > directly *export* a value - you have to export a function or macro > that produces the value. > > E.g.,

Re: [racket-users] questions about top-level-bind-scope in root-expand-context

2020-03-23 Thread Matthew Flatt
At Mon, 23 Mar 2020 01:45:40 -0700 (PDT), Yongming Shen wrote: > I tried the example you gave for my first question and it resulted in an > error. Oops --- you're right. I lost track of what we try to make work at the top level. > I think this is because `(define-values (x) ...)` expands `...` w

Re: [racket-users] questions about top-level-bind-scope in root-expand-context

2020-03-23 Thread Yongming Shen
Hi Matthew, Thank you for the quick reply! I tried the example you gave for my first question and it resulted in an error. I have the following as `module-that-defines-fib`: #lang racket (provide fib) (define fib "fib") And this is the error that I got (using Racket 7.6): ; applicatio

Re: [racket-users] questions about top-level-bind-scope in root-expand-context

2020-03-21 Thread Matthew Flatt
At Sat, 21 Mar 2020 00:00:07 -0700 (PDT), Yongming Shen wrote: > First, in the source file expander/expand/bind-top.rkt, there is a comment > that says "When compiling `(define-values (x) ...)` at the top level, > we'd like to bind `x` so that a reference in the "..." will point back to > the de

[racket-users] questions about top-level-bind-scope in root-expand-context

2020-03-21 Thread Yongming Shen
Hi, I noticed that top level (define-values ...) forms create bindings that include the top-level-bind-scope (of the namespace's root-expand-context), and have two questions related to this. First, in the source file expander/expand/bind-top.rkt, there is a comment that says "When compiling `(

Re: [racket-users] Questions on a very simple class

2020-02-15 Thread Alain De Vos
When i try typed/racket : #lang typed/racket (define (integerclass x) (define (getx) x) (define (setx! [x_new : Integer]) (set! x x_new)) (define (add [y : integerclass]) : integerclass (integerclass (+ 1 (y 'getx (lambda (message . args) (case message ((getx) (apply g

Re: [racket-users] Questions on a very simple class

2020-02-15 Thread Sage Gerard
1. If the intention is to create a class, then I'd use the class form. https://docs.racket-lang.org/reference/createclass.html#%28form._%28%28lib._racket%2Fprivate%2Fclass-internal..rkt%29._class%2A%29%29 Not that there's anything overtly wrong with using a closure, but common validation tasks r

[racket-users] Questions on a very simple class

2020-02-15 Thread Alain De Vos
Following code makes an "integerclass" with an "add" method : #lang racket (define (integerclass x) (define (getx) x) (define (setx! x_new) (set! x x_new)) (define (add y)(integerclass (+ x (y 'getx (lambda (message . args) (case message ((getx) (apply getxargs))

Re: pkgs still has no docs? (was: Re: [racket-users] Questions about Scribble docs)

2019-02-19 Thread David Storrs
Speaking of things with no docs, the abnf package seems intriguing. Does anyone have a short summary or example? On Tue, Feb 19, 2019, 5:14 PM John Clements wrote: > Looks like… this is still the case? Specifically, reloading > pkgs.racket-lang.org still shows that all packages are missing > doc

pkgs still has no docs? (was: Re: [racket-users] Questions about Scribble docs)

2019-02-19 Thread 'John Clements' via Racket Users
Looks like… this is still the case? Specifically, reloading pkgs.racket-lang.org still shows that all packages are missing documentation. I thought I’d seen a message suggesting that this was resolved, but it appears I was mistaken. John > On Feb 16, 2019, at 8:08 PM, David Storrs wrote: >

Re: [racket-users] Questions about Scribble docs

2019-02-16 Thread David Storrs
On Sat, Feb 16, 2019 at 9:18 PM Greg Hendershott wrote: > > The package web site seems to think no packages have been built: The > "Most recent build results" item is blank for every of the dozen > packages I just checked. Ah, that would do it. Thanks. > > So I think that's one problem. > > > W

Re: [racket-users] Questions about Scribble docs

2019-02-16 Thread Greg Hendershott
p.s. As another example of the current breakage: All my own packages that do have documentation, have yellow "This package needs documentation" demerit badges, at the moment. On Sat, Feb 16, 2019 at 9:17 PM Greg Hendershott wrote: > > The package web site seems to think no packages have been buil

Re: [racket-users] Questions about Scribble docs

2019-02-16 Thread Greg Hendershott
The package web site seems to think no packages have been built: The "Most recent build results" item is blank for every of the dozen packages I just checked. So I think that's one problem. When that's working normally, as it usually does, there are two levels of refresh: 1. The package catalog

[racket-users] Questions about Scribble docs

2019-02-16 Thread David Storrs
Do I need to do something particular to make the package server notice my documentation? I've got a scribblings/struct-plus-plus.scrbl file but the package server is still listing it as "needs documentation". Separate but related, when I install a module and it builds the documentation, is there

Re: [racket-users] Questions about plot

2018-12-05 Thread Matt Jadud
Hi Doug, I suspect (in this case), I'd like to build on/leverage plot, because I'd like things to place nice in DrRacket's REPL (for example), and be able to play with the plot ecosystem. To save you any work, I'll circle around later if future me thinks current me was wrong. This is crossing wit

Re: [racket-users] Questions about plot

2018-12-05 Thread Doug Williams
Matt, I have done many extensions to plots for a variety of reasons. Most of my extensions are a third option: Build on dc%. I typically make a new widget, say based on a horizontal or vertical panel with one or more embedded canvases. Then I use plot/dc to render directly on those canvases. I can

[racket-users] Questions about plot

2018-12-05 Thread Matt Jadud
Hi all, If I want to develop a new plot type, would I do best to: 1. Build on plot, or 2. Build on pict? I suspect #1. If I want to (say) have a number line, I would like to have an x-axis, centered in my plot area (vertically), and no y-axis. I've been reading the plot code for scatter plots,

Re: [racket-users] Questions about module encapsulation guarantees

2018-09-12 Thread Matthew Flatt
At Sun, 9 Sep 2018 18:52:57 -0700 (PDT), Jack Firth wrote: > If I make a symbol with `gensym` (or do anything else that creates a new > value that's not `eq?` to any other value) in some module, what are the > absolute upper limits on my ability to use that symbol within the module > without all

Re: Sealers/unsealers in Racket (Re: [racket-users] Questions about module encapsulation guarantees)

2018-09-10 Thread Christopher Lemmer Webber
Good call, I'll be careful about that in future examples. David Storrs writes: > This is a very cool thing, but may I suggest choosing a different name than > 'can'? '(can-unseal lunch)' reads less like a verb and more like a > predicate where someone forgot the '?' -- "Are you able to unseal lu

Re: Sealers/unsealers in Racket (Re: [racket-users] Questions about module encapsulation guarantees)

2018-09-10 Thread Christopher Lemmer Webber
Matthias Felleisen writes: >> On Sep 10, 2018, at 10:09 AM, Christopher Lemmer Webber >> wrote: >> >> Jack Firth writes: >> >>> If I make a symbol with `gensym` (or do anything else that creates a new >>> value that's not `eq?` to any other value) in some module, what are the >>> absolute upper

Re: Sealers/unsealers in Racket (Re: [racket-users] Questions about module encapsulation guarantees)

2018-09-10 Thread David Storrs
This is a very cool thing, but may I suggest choosing a different name than 'can'? '(can-unseal lunch)' reads less like a verb and more like a predicate where someone forgot the '?' -- "Are you able to unseal lunch?" as opposed to "Unseal my lunch now". On Mon, Sep 10, 2018 at 11:09 AM, Christoph

Re: Sealers/unsealers in Racket (Re: [racket-users] Questions about module encapsulation guarantees)

2018-09-10 Thread Matthias Felleisen
> On Sep 10, 2018, at 10:09 AM, Christopher Lemmer Webber > wrote: > > Jack Firth writes: > >> If I make a symbol with `gensym` (or do anything else that creates a new >> value that's not `eq?` to any other value) in some module, what are the >> absolute upper limits on my ability to use t

Sealers/unsealers in Racket (Re: [racket-users] Questions about module encapsulation guarantees)

2018-09-10 Thread Christopher Lemmer Webber
Jack Firth writes: > If I make a symbol with `gensym` (or do anything else that creates a new > value that's not `eq?` to any other value) in some module, what are the > absolute upper limits on my ability to use that symbol within the module > without allowing any other modules to get ahold of th

[racket-users] Questions about module encapsulation guarantees

2018-09-09 Thread Jack Firth
If I make a symbol with `gensym` (or do anything else that creates a new value that's not `eq?` to any other value) in some module, what are the absolute upper limits on my ability to use that symbol within the module without allowing any other modules to get ahold of the symbol? What do code i

Re: [racket-users] Questions on functional-setter generator macro

2018-05-28 Thread Greg Hendershott
On Mon, May 28, 2018 at 9:58 AM, David Storrs wrote: > O *course* there is. Lord know, why should I have an original idea > now? :P The Racket package ecosystem is growing to where we need some volunteers to form a mathic order of Lorites (like in Neal Stephenson's novel, Anathem). --

Re: [racket-users] Questions on functional-setter generator macro

2018-05-28 Thread David Storrs
On Sat, May 26, 2018 at 3:11 PM, Alexis King wrote: > This isn’t a direct answer to your question, but as Matthias notes, my > struct-update package already implements a macro that generates > functional setters from structure definitions. Here’s a link to the > documentation: > O *cours

Re: [racket-users] Questions on functional-setter generator macro

2018-05-26 Thread Alexis King
This isn’t a direct answer to your question, but as Matthias notes, my struct-update package already implements a macro that generates functional setters from structure definitions. Here’s a link to the documentation: http://docs.racket-lang.org/struct-update/index.html Of course, that isn’t

Re: [racket-users] Questions on functional-setter generator macro

2018-05-26 Thread Matthias Felleisen
You may wish to study Alexis’s struct updater package: https://github.com/lexi-lambda/struct-update > On May 26, 2018, at 11:46 AM, David Storrs wrote: > > Hi folks, > > I am becoming more converted to the way of structs vs hashes as time goes

[racket-users] Questions on functional-setter generator macro

2018-05-26 Thread David Storrs
Hi folks, I am becoming more converted to the way of structs vs hashes as time goes on and so I sat down to write a macro that would generate functional setters as a convenience. Code is at bottom of email; I'd appreciate suggestions on how to improve it, in particular better ways of handling mac

Re: [racket-users] Questions on HtDP 2e, Ex. 356

2017-07-19 Thread Matthias Felleisen
Hi Ben, as Jens has pointed out, it pays off to read the context of an exercise (like in the real world). The second exercise states > If the terminology poses any difficulties, do re-read BSL Grammar. where “BSL Grammar” is a link that explains BSL via a data definition (that’s what a gram

Re: [racket-users] Questions on HtDP 2e, Ex. 356

2017-07-13 Thread Jens Axel Søgaard
> I hope this is heading in the right direction. Looks fine to me. -- 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. Fo

Re: [racket-users] Questions on HtDP 2e, Ex. 356

2017-07-12 Thread Ben Morin
Hi Jens Thanks for the reply. I was working through it with some free time today, and I think my data definition works. The other big problem I was having was the body for the user-defined function. As you said, ex 356 isn't concerned about that aspect. This is what was/is throwing me off. My

Re: [racket-users] Questions on HtDP 2e, Ex. 356

2017-07-12 Thread Jens Axel Søgaard
Hi Ben, Adding syntax for both applications, user defined functions and adding evaluation of these in the same execise, is a bit much. It is therefore split up into exercise 356, 357, 358 and 359. Exercise 356 is only about extending the data definition such that applications can be represented.

[racket-users] Questions on HtDP 2e, Ex. 356

2017-07-12 Thread Ben Morin
I've been working my way through HtDP on and off over the past several months. I've generally been able to figure it out on my own (even if it takes awhile). However, Intertwined Data has given me a couple problems that I just can't seem to wrap my head around. The major one is 21.3 "Interpreti

[racket-users] Questions about quad

2016-05-18 Thread Daniel Prager
Hi Matthew I'm having a play with your quad type-setting library, which looks very promising as a way to generate typeset pdfs from Racket without invoking LaTeX. It looks really promising. Quick questions (which may also prompt a light update to the docs): - How do I require modules? @(requ

Re: [racket-users] Questions about implementing a Lisp-2

2016-04-12 Thread Hendrik Boom
On Tue, Apr 12, 2016 at 08:23:52PM -0700, Josh Tilles wrote: > On Monday, April 11, 2016 at 8:41:54 PM UTC-4, Neil Van Dyke wrote: > > I would first decide whether and how I want functions and variables > > provided by modules in this language, to be usable from modules in other > > `#lang`s. Th

Re: [racket-users] Questions about implementing a Lisp-2

2016-04-12 Thread Neil Van Dyke
Josh Tilles wrote on 04/12/2016 11:23 PM: I'm writing an implementation of KLambda, a tiny (the "K" stands for "Kernel") and rather idiosyncratic Lisp. This is the best URL I found for what I think is KLambda: http://shenlanguage.org/Documentation/shendoc.htm#Kl I had expected there to be

Re: [racket-users] Questions about implementing a Lisp-2

2016-04-12 Thread Josh Tilles
On Monday, April 11, 2016 at 8:41:54 PM UTC-4, Neil Van Dyke wrote: > I would first decide whether and how I want functions and variables > provided by modules in this language, to be usable from modules in other > `#lang`s. That narrows down the options of how to do it. Very good point. To be h

Re: [racket-users] Questions about implementing a Lisp-2

2016-04-11 Thread Matthew Butterick
Messing with `current-namespace` seems like overkill, though maybe this approach is too naive for your needs, which just involves hiding the `defun` identifiers in the current namespace with a `defun:` prefix, then using `#%app` to pull them out again. #lang racket (require rackunit (for-synta

Re: [racket-users] Questions about implementing a Lisp-2

2016-04-11 Thread Neil Van Dyke
Josh Tilles wrote on 04/11/2016 07:51 PM: I'm trying to implement a Lisp-2 in Racket, I would first decide whether and how I want functions and variables provided by modules in this language, to be usable from modules in other `#lang`s. That narrows down the options of how to do it. If you

[racket-users] Questions about implementing a Lisp-2

2016-04-11 Thread Josh Tilles
Hello Racketeers, I come seeking advice. I'm trying to implement a Lisp-2 in Racket, but I've been unsuccessful in my initial attempts. My goal is to be able to do something like the following: ``` (defun example (sym) (symbol->string sym)) (defvar example 'an-arbitrary-symbol) (example exa

[racket-users] questions about racket [new user]

2015-07-03 Thread marcio esper
Hello, I am new here. using racket a very short time. I install racket on linux mint 17 64bit, I was using it on windows 7 The deb package work fine, more fast than in windows. very good version. When I create a executable on linux, it create a tgz archive with the bin and libs inside. In win

RE: [racket-users] Questions: free-identifier=?; literal-id in syntax-case

2015-04-05 Thread Jos Koot
Subject: Re: [racket-users] Questions: free-identifier=?; literal-id in syntax-case On Apr 5, 2015, at 4:07 AM, Jos Koot wrote: Your argument that a literal-id may occur more than once in a pattern makes sense. I'll play with syntax-parse and (_ (~and + (~literal +)) (~literal +)). May

Re: [racket-users] Questions: free-identifier=?; literal-id in syntax-case

2015-04-05 Thread Alexander D. Knauth
On Apr 5, 2015, at 4:07 AM, Jos Koot wrote: > Your argument that a literal-id may occur more than once in a pattern makes > sense. > I'll play with syntax-parse and (_ (~and + (~literal +)) (~literal +)). > May be I am able to make a syntax transformer, say my-syntax-case, > available in expans

RE: [racket-users] Questions: free-identifier=?; literal-id in syntax-case

2015-04-05 Thread Jos Koot
s.com] On Behalf Of Alexander D. Knauth Sent: sábado, 04 de abril de 2015 19:35 To: Jos Koot Cc: racket-users@googlegroups.com Subject: Re: [racket-users] Questions: free-identifier=?; literal-id in syntax-case On Apr 4, 2015, at 11:22 AM, Jos Koot wrote: The following puzzles me: #lang r

Re: [racket-users] Questions: free-identifier=?; literal-id in syntax-case

2015-04-04 Thread Alexander D. Knauth
On Apr 4, 2015, at 11:22 AM, Jos Koot wrote: > The following puzzles me: > > #lang racket > (define plus +) > (free-identifier=? #'+ #'plus) ; -> #f > > #lang racket > (define-syntax (a stx) > (syntax-case stx () > ((_) (datum->syntax stx (free-identifier=? #'+ #'plus) > (define plus

[racket-users] Questions: free-identifier=?; literal-id in syntax-case

2015-04-04 Thread Jos Koot
The following puzzles me: #lang racket (define plus +) (free-identifier=? #'+ #'plus) ; -> #f #lang racket (define-syntax (a stx) (syntax-case stx () ((_) (datum->syntax stx (free-identifier=? #'+ #'plus) (define plus +) (a) ; -> #f #lang racket (define plus +) (define-syntax (a stx)