
Hello everyone! I’ve a question about syntax-case

Is it possible to use pattern (or (_ #f) ())
? Ordinary match
allows it.

I guess you can have this with a syntax-parse
and ~or
. But with syntax-case
I don’t know.

@jerome.martin.dev exactly! I’ll try it now! Thank you!:+1:

@jerome.martin.dev it works as expected!

Great :smile:

Hi,

I thought I’d try the new nightly builds of Racket; Welcome to DrRacket, version 6.90.0.24—2018–04–03(a4eddbd63d/a) [3m]. Language: racket, with debugging and profiling [custom]; memory limit: 128 MB. >

looks good, but I’ve noticed that Dr Racket 6.90.0.24 doesn’t launch from the MacOS GUI(finder), only from the command line.

Process: DrRacket [5664] Path: /private/var/folders/*/DrRacket.app/Contents/MacOS/DrRacket Identifier: org.racket-lang.DrRacket Version: 6.90.0.24 (6.90.0.24) Code Type: X86–64 (Native) Parent Process: ??? [1] Responsible: DrRacket [5664] User ID: 502
Date/Time: 2018–04–03 16:07:34.821 +0100 OS Version: Mac OS X 10.13.3 (17D102) Report Version: 12 Anonymous UUID: 818EA46D-C579–9E4C–5EAF–344B941ADCEB
Sleep/Wake UUID: 512F92B9-DBE0–4607–8A32-F19D3028C0CC
Time Awake Since Boot: 78000 seconds Time Since Wake: 2200 seconds
System Integrity Protection: enabled
Notes: Translocated Process
Crashed Thread: 0
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD, [0x1] Library missing
Application Specific Information: dyld: launch, loading dependent libraries
Dyld Error Message: Library not loaded: @executable_path/../../../lib/Racket.framework/Versions/6.90.0.24_3m/Racket Referenced from: /private/var/folders/*/DrRacket.app/Contents/MacOS/DrRacket Reason: image not found
Binary Images: 0x1017c5000 – 0x1017cdfff +org.racket-lang.DrRacket (6.90.0.24 – 6.90.0.24) <59C1FB4D–0DD4–30A0-A524–5716A7BC6028> /var/folders/*/DrRacket.app/Contents/MacOS/DrRacket 0x104c28000 – 0x104c7298f dyld (519.2.2) <6695F30B–4E88–3C0B–9867–7D738C44A3E6> /usr/lib/dyld
Model: MacBookPro9,2, BootROM …

@andre.kuhlenschmidt has joined the channel

Is there a way to apply a function with n-parameters to n-lists such that each function call would map the n-th argument to the nth list?
A simple example: (the-thing-im-looking-for
(lambda (a b c) (+ a b c))
'(1 2 3)
'(2 3 4)
'(1 1 2))
would yield '(4 6 9)

@plotnus I think map will do what you want

This gives the output you expect (map
(lambda (a b c) (+ a b c))
'(1 2 3)
'(2 3 4)
'(1 1 2))

@dan Yes that does it. Thank you Dan! Very cool feature.

Is the current build of Racket failing for anyone else?

The current error I’m getting is https://gist.github.com/LeifAndersen/ec746ba75b1805885289d213242b1825


Odd… Well doing a git clean -fxd
seems to have cleared it up. Oh well. :disappointed:

@leif I had that last time I did a git pull, and I had to git clean
too

I nuked racket/src/build
, which is a little less drastic.

@shu—hung Sad

@lexi.lambda Mmm…okay. I’ll give that a shot next time, thanks.

@spdegabrielle Try dragging “DrRacket.app” out of its encloding folder (command-click if it’s in “Applications”) and then drag it back in place. The problem is most likely that snapshots are not signed, so the executable is sandboxed by the OS in a way that doesn’t let it find the Racket framework.