redwynskaja
2018-8-6 19:16:09

@redwynskaja has joined the channel


leif
2018-8-6 19:59:02

@mflatt @stamourv @ryanc And/or whoever maintains racket these days: it looks like Racket 7’s gui isn’t working on OSX 10.7: https://stackoverflow.com/questions/51698819/cant-run-drracket-or-gracket-7-0


leif
2018-8-6 19:59:29

maintains the racket distribution process*


leif
2018-8-6 20:00:28

If we do have a minimum os x version requirement, we should probably document it somewhere (unless we already have and I just missed it.)



leif
2018-8-6 20:02:47

Okay cool, thanks.


mflatt
2018-8-6 20:03:23

I think the intended system requirements used to be listed on the download page, but we lost that somewhere along the way.


leif
2018-8-6 20:05:54

ya, I don’t see them anywhere. Would it make sense for one of us to add them back?


redwynskaja
2018-8-6 20:29:14

I have a (hopefully quick) question.. if that is an appropriate place to ask…


redwynskaja
2018-8-6 20:29:42

I am trying my hand at macros and ran into the following: http://pasterack.org/pastes/82625


lexi.lambda
2018-8-6 20:36:16

@redwynskaja Try this out (requires Racket 7): (define-syntax (def-par stx) (syntax-parse stx [(_ name:id {~seq par:id val} ...) #:with [par-str ...] (map (compose symbol->string syntax-e) (syntax->list #'[par ...])) #'(define name (hash {~@ 'par-str val} ...))]))


soegaard2
2018-8-6 20:39:01

That’s a nice solution! The construct ~@ is a nice trick.


lexi.lambda
2018-8-6 20:39:10

That’s the part that needs Racket 7. :)


redwynskaja
2018-8-6 20:39:22

wow… thanks!


redwynskaja
2018-8-6 20:39:32

i will work through to understand


soegaard2
2018-8-6 20:39:50

(map symbol->string (syntax->datum #’(par …))) hides the syntax-e


redwynskaja
2018-8-6 20:40:20

one question more :slightly_smiling_face:. the {} are used to match a certain pattern but without actually matching parentheses?


lexi.lambda
2018-8-6 20:42:12

Oh, the curly braces are interchangeable with parens, just as square brackets are. Perhaps I shouldn’t have let my (nonstandard) stylistic choice leak into my example!


lexi.lambda
2018-8-6 20:43:10

You could replace them with parens and it would work just fine. I just use the braces to highlight that I’m not actually matching or constructing a list.


redwynskaja
2018-8-6 20:50:26

Thanks again!