Re: [racket-users] make extensions or replacements

2019-04-20 Thread Norman Gray
On 20 Apr 2019, at 1:11, 'John Clements' via Racket Users wrote: There’s a paper at the most recent ICFP from Simon Peyton Jones (et al., I’m guessing) on make languages, IIRC. Very interesting -- thanks! The paper is Andrey Mokhov, Neil Mitchell, and Simon Peyton Jones. 2018. Build

Re: [racket-users] Inline tests for library and corresponding lang result in a loading cycle

2019-04-20 Thread zeRusski
> If you want to invoke the language as `#lang foo/bar` then you would put > this `reader` submodule in "foo/bar.rkt". This would make > "foo/bar/lang/reader.rkt" obsolete. > Duh. I think I understand how this resolves now and I have a flat structure, which I think works nicely: foo*/:* -

Re: [racket-users] From HtDP to Racket

2019-04-20 Thread Matthias Felleisen
> On Apr 18, 2019, at 12:08 PM, Luis Sanjuán wrote: > > The last month or so we all read some interesting posts about the convenience > of examples or docs to facilitate the transition from other languages to > Racket (from Python to Racket, from R to Racket, ...). Then I thought about >

[racket-users] Re: catch and bind an unbound id in a macro

2019-04-20 Thread Ryan Kramer
Below is a short example showing that identifier-binding doesn't seem to work quite right with Scribble's make-base-eval. It works fine with make-evaluator from racket/sandbox. I'm not sure why this is, but using syntax-local-value instead works everywhere. (Implementation here:

Re: [racket-users] Re: catch and bind an unbound id in a macro

2019-04-20 Thread Alexis King
The third argument to identifier-binding, top-level-symbol?, controls the result of identifier-binding when the identifier is bound to a top-level binding (and both the REPL and sandboxed evaluators are kinds of top-level evaluation). The docs elaborate this way: > The result is (list

Re: [racket-users] Re: catch and bind an unbound id in a macro

2019-04-20 Thread Shu-Hung You
identifier-binding returns #f for top-level bindings. I believe make-base-eval is evaluating expressions at top-level. On Sat, Apr 20, 2019 at 4:56 PM Ryan Kramer wrote: > > Below is a short example showing that identifier-binding doesn't seem to work > quite right with Scribble's

[racket-users] E' PEDOFILO ED ASSASSINO: PAOLO CARDENÀ (TWITTER)! https://www.py.cz/pipermail/python/2017-September/013036.html DI CRIMINALISSIMO BLOG VINCITORI E VINTI ( VEDRA' COME LO FAREMO DIVEN

2019-04-20 Thread SIMON-MILLS EX-ABNAMRO EX-UBS
E' PEDOFILO ED ASSASSINO: PAOLO CARDENÀ (TWITTER)! https://www.py.cz/pipermail/python/2017-September/013036.html DI CRIMINALISSIMO BLOG VINCITORI E VINTI ( VEDRA' COME LO FAREMO DIVENIRE PARTE DELLA SECONDA CATEGORIA E NON PRIMA, CHE RICICLI DA SEMPRE SOLDI DI MAFIA, CAMORRA E NDRANGHETA O

Re: [racket-users] From HtDP to Racket

2019-04-20 Thread Hendrik Boom
On Thu, Apr 18, 2019 at 09:08:07AM -0700, Luis Sanjuán wrote: > Then I thought about another non-Racket languages that no one > mention, if I recall well, for which such examples would be more than > helpful, *SL languages ;) What are *SL languages? -- Hendrik -- You received this message

Re: [racket-users] Re: catch and bind an unbound id in a macro

2019-04-20 Thread Stephen Chang
fwiw, I think here is a working version along the lines of your original attempt. #lang racket (require (for-syntax syntax/parse)) (define-syntax set/define (syntax-parser [(_ h k v) #:when (with-handlers ([exn:fail:syntax:unbound? (lambda _ #f)]) (local-expand #'h

Re: [racket-users] From HtDP to Racket

2019-04-20 Thread Ben Greenman
On 4/20/19, Hendrik Boom wrote: > On Thu, Apr 18, 2019 at 09:08:07AM -0700, Luis Sanjuán wrote: >> Then I thought about another non-Racket languages that no one >> mention, if I recall well, for which such examples would be more than >> helpful, *SL languages ;) > > What are *SL languages? Those