Re: [racket-users] How to learn the *core* of Racket?

2021-11-11 Thread Yushuo Xiao
;re going to > program in something higher level. Is this purely a "learning assembly > code is good because it gives you a better understanding of machine > architecture" thing? > > On Sat, Nov 6, 2021 at 5:33 AM Yushuo Xiao wrote: > >> I've learned some Racket

Re: [racket-users] How to learn the *core* of Racket?

2021-11-11 Thread Yushuo Xiao
nto syntax objects (S-expressions) and then expand to these special forms. Am I right? On Sunday, November 7, 2021 at 6:53:53 AM UTC+8 david@gmail.com wrote: > Hi Yushuo, > > On Sat, Nov 6, 2021 at 5:33 AM Yushuo Xiao wrote: > >> I've learned some Racket, and can comf

[racket-users] How to learn the *core* of Racket?

2021-11-06 Thread Yushuo Xiao
I've learned some Racket, and can comfortably program in it, but I only learned it as an ordinary language, much like Scheme. I know Racket is much more than that, for its "language-oriented" features. Languages become a first-class member in Racket, and to my understanding, even "#lang racket"

[racket-users] How to define a function that can be used both in syntax transformers and ordinary code?

2021-05-09 Thread Yushuo Xiao
I am using syntax transformers to define macros in Racket. I want to create some helper functions to help me manipulate the syntax. However, the functions I defined outside the syntax transformer are not available inside the syntax transformer. For example, in the following code (define (my-fun

[racket-users] Racket - How to define a function that can be used both in syntax transformers and ordinary code?

2021-05-09 Thread Yushuo Xiao
I am using syntax transformers to define macros in Racket. I want to create some helper functions to help me manipulate the syntax. However, the functions I defined outside the syntax transformer are not available inside the syntax transformer. For example, in the following code (define (my-fun