Re: [racket-users] how do you read, manipulate, debug scope sets?

2019-05-07 Thread zeRusski
Thanks Matthew I'll have a look > > All: I published a link to the code I had in mind in a separate thread , so if interested check it out. I don't want to pollute this one if someone takes on the challenge of answering in more

Re: [racket-users] how do you read, manipulate, debug scope sets?

2019-05-06 Thread Matthew Butterick
> On May 6, 2019, at 7:53 AM, zeRusski wrote: > > Are there any tutorials that show you how to use things documented in Syntax > Transformers chapter of the Reference? > > How do you debug these scope games? I agree there is something of a gap in the Racket docs / tooling, because scopes are

Re: [racket-users] how do you read, manipulate, debug scope sets?

2019-05-06 Thread Matthias Felleisen
> On May 6, 2019, at 10:53 AM, zeRusski wrote: > > Suddenly I find myself playing games with hygiene and not really knowing the > rules. Hygiene is a default not an absolute. The idea of hygiene is that, unless the macro writer goes out of his way, the expander assumes that identifiers

[racket-users] how do you read, manipulate, debug scope sets?

2019-05-06 Thread zeRusski
I wrote a macro which introduced an implicit binding <~ so that it could be used in expressions at the use-site. Initially did it with #+begin_src racket ;; inside syntax-parse (datum->syntax this-syntax #'<~) #+end_src followed by macro introduced expr that binds it, then the use-site