pocmatos
2017-12-19 10:35:01

Interesting, I just noticed I can do (define foo identity), however I cannot define a method like this. (class object% (super-new) (define/public foo identity)) complains that this is a bad form for method definition. Why is this?


spdegabrielle
2017-12-19 12:42:06

Looks like (define/public ...) has a (reasonably?) strict definition of what might constitute a method? I’m unfamiliar with the identity identifier - is it a synonym for (lambda (i) i)?


samth
2017-12-19 13:40:19

@lexi.lambda I would think taking that code as a starting position is a good idea, but trusting it to be complete or correct is not


al
2017-12-19 13:56:10

@al has joined the channel


al
2017-12-19 14:18:14

Is there any particular place discussing the AdventofCode2017 puzzles (and completing in racket)?


samth
2017-12-19 16:36:06

I think Matthew Butterick is doing them in Racket, you can see his code on GitHub


al
2017-12-19 16:39:49

oh cool, thanks


al
2017-12-19 17:03:44

wow, some of that looks really nice


slack1
2017-12-19 18:22:31

I’m working on Advent as well


shu--hung
2017-12-19 22:07:47

How to specify a free-id=? in syntax-parse as in syntax-case*? I wish to supply something like (free-identifier=? a b ph 0)


shu--hung
2017-12-19 22:08:42

the #:phase option will compare the literals as if it is (free-identifier=? a b ph ph) right?


notjack
2017-12-19 22:08:55

@shu—hung huh, I didn’t know syntax-case* existed


notjack
2017-12-19 22:09:31

my wildly speculative guess is you could make a syntax class


shu--hung
2017-12-19 22:12:00

thanks, let me check that


shu--hung
2017-12-19 22:15:48

Oh, maybe #:phase will just be okay. I’m applying syntax-parse to syntax objects that are expanded, so the relevant bindings should be there


Bot messages not yet supported
Bot messages not yet supported
pocmatos
2017-12-20 07:50:02

That’s what I expected identity to be.