Re: [racket-users] How can I write a macro that recognizes arbitrary other macros?

2020-04-16 Thread Matthew Flatt
The main trick in this case is to recognize `define-values` (which is what `define` expands to) instead of `define`. That's because `define-values` propagates syntax arming to its identifiers and right-hand side, which means that your macro is allowed to pull it apart. You'll also need to use an

[racket-users] How can I write a macro that recognizes arbitrary other macros?

2020-04-16 Thread Ryan Kramer
The following code produces '(1 2 3 4) (define-syntax (collect stx) (syntax-case stx (define) [(_ (define id val) rest ...) #'(let ([id val]) (collect rest ...))] [(_ (macro arg ...) rest ...) (syntax-local-value #'macro (lambda () #f)) (let ([expanded

Re: [racket-users] NixOS: (help map) does not find documentation

2020-04-16 Thread Asumu Takikawa
On 2020-04-16 05:19:26 -0700, unlimitedscolobb wrote: >I started a discussion on NixOS Discourse here: > > https://discourse.nixos.org/t/racket-does-not-find-documentation-after-update/ >Would you mind submitting a PR from your `racket-enable-useprefix` branch? >If you don't have

Re: [racket-users] Re: hackernews

2020-04-16 Thread sleepnova
I am also a newcomer from industry. :) Here's my two cents. While the new web page looks pretty, it still needs to answer following questions. Usually people cares about the most. 1. Can this thing solve my problem? (current and future) 2. Why would I choose (to invest my time on) this language

Re: [racket-users] NixOS: (help map) does not find documentation

2020-04-16 Thread unlimitedscolobb
Hi Asumu and great thanks for your answer! On Thursday, April 16, 2020 at 12:42:46 AM UTC+2, asumu wrote: > > On 2020-04-14 15:53:09 -0700, unlimitedscolobb wrote: > >Turns out this file does not even exist on my machine, but > > >

[racket-users] minicosm - a Racket universe/big-bang inspired game engine in ClojureScript

2020-04-16 Thread Annaia Danvers
Hey folks! This is technically slightly outside the remit of this list, but I felt it proper to give credit where it's due. minicosm is an FP-oriented game engine for the browser that was significantly inspired by the approach in Racket's universe. https://github.com/jarcane/minicosm The idea