Re: [racket-users] ?Unbound identifier in module in: make-temporary-file

2018-05-16 Thread Philip McGrath
On Wed, May 16, 2018 at 4:09 PM, Neil Van Dyke wrote: > Sam answered your question. Here's how one can usually answer the more > general question... > > * The documentation for most Racket modules will usually say what > `require` form you need to import it, assuming that

Re: [racket-users] ?Unbound identifier in module in: make-temporary-file

2018-05-16 Thread Neil Van Dyke
Sam answered your question.  Here's how one can usually answer the more general question... * The documentation for most Racket modules will usually say what `require` form you need to import it, assuming that you are using the `racket/base` language.  For example, if you're looking at the

Re: [racket-users] ?Unbound identifier in module in: make-temporary-file

2018-05-16 Thread Sam Tobin-Hochstadt
You need to add `(require racket/file)` (or you can use `#lang racket` instead of `racket/base`). Sam On Wed, May 16, 2018 at 4:05 PM, vlaxcompiler wrote: > How to fix this script? > > #lang racket/base > (make-temporary-file "cl_gracket~a.tmp") > > > Welcome to DrRacket,

[racket-users] ?Unbound identifier in module in: make-temporary-file

2018-05-16 Thread vlaxcompiler
How to fix this script? #lang racket/base (make-temporary-file "cl_gracket~a.tmp") Welcome to DrRacket, version 6.11 [3m]. . make-temporary-file: unbound identifier in module in: make-temporary-file > -- You received this message because you are subscribed to the Google Groups "Racket

Re: [racket-users] ssax:make-parser

2018-05-16 Thread Neil Van Dyke
John Clements, et al., thank you for ongoing work on packaging Oleg Kiselyov's SXML-related libraries nicely for Racket.  It's not an easy task. (Background, for the list... Years ago, one of the great masters of Scheme, Oleg Kiselyov, did a lot of excellent work on XML in Scheme, released

Re: [racket-users] ssax:make-parser

2018-05-16 Thread N. Raghavendra
At 2018-05-16T14:56:00-04:00, John Clements wrote: > Maybe… I’m inclined to respect Ryan’s thinking on this; there are a > bunch of functions in there that look like they definitely shouldn’t > be exposed, and couldn’t reasonably be called from outside. In a quick > scan of the existing

Re: [racket-users] ssax:make-parser

2018-05-16 Thread 'John Clements' via Racket Users
> On May 16, 2018, at 11:17 AM, N. Raghavendra wrote: > > At 2018-05-16T13:49:52-04:00, John Clements wrote: > >> It seems like make-parser should probably be provide’d. I’ve pushed a >> change to make ssax:make-parser a top-level provide. > > Thank you very much. In

Re: [racket-users] Unicode identifiers

2018-05-16 Thread N. Raghavendra
At 2018-05-16T07:32:43-07:00, Andrew Kent wrote: > #lang racket/base > > (require (for-syntax racket/base racket/string) > racket/require) > > (require (filtered-in > (λ (name) > (string-replace name "->" "→")) > racket)) > > (string→number "42") Thank

Re: [racket-users] ssax:make-parser

2018-05-16 Thread N. Raghavendra
At 2018-05-16T13:49:52-04:00, John Clements wrote: > It seems like make-parser should probably be provide’d. I’ve pushed a > change to make ssax:make-parser a top-level provide. Thank you very much. In fact, it may be a good idea to restore (provide (all-from-out "ssax/ssax.rkt")) > Would you

Re: [racket-users] ssax:make-parser

2018-05-16 Thread 'John Clements' via Racket Users
It seems like make-parser should probably be provide’d. I’ve pushed a change to make ssax:make-parser a top-level provide. Would you (N. Raghavendra) be interested in taking the raw pseudo-documentation currently provided for ssax:make-parser and reformatting it into something useful, perhaps

Re: [racket-users] Unicode identifiers

2018-05-16 Thread Alexander McLin
Would it be possible to adjust the readtable to replace "→" with "->" ? On Wednesday, May 16, 2018 at 10:32:43 AM UTC-4, Andrew Kent wrote: > > `racket/string` needs to be required _for syntax_ in order to work in the > suggested way (because it's bindings are needed at compile time). > > The

Re: [racket-users] Unicode identifiers

2018-05-16 Thread Andrew Kent
`racket/string` needs to be required _for syntax_ in order to work in the suggested way (because it's bindings are needed at compile time). The following works for me in a module: ``` #lang racket/base (require (for-syntax racket/base racket/string) racket/require) (require

Re: [racket-users] Unicode identifiers

2018-05-16 Thread N. Raghavendra
At 2018-05-16T09:12:18-04:00, Alex Knauth wrote: > Here is a `transform-right-arrow-in` definition that transforms -> > into →: > > #lang racket > (require racket/require > racket/require-syntax > (for-syntax syntax/parse)) > > (begin-for-syntax > ;; String -> String >

Re: [racket-users] Unicode identifiers

2018-05-16 Thread N. Raghavendra
At 2018-05-16T12:37:47+02:00, Jens Axel Søgaard wrote: > (require (filtered-in >   (lambda (name) > (and (regexp-match? #rx"^[a-z-]+$" name) >  (regexp-replace #rx"-" (string-titlecase name) > ""))) >   racket/base)) Thank you

Re: [racket-users] Unicode identifiers

2018-05-16 Thread David Storrs
On Wed, May 16, 2018 at 6:37 AM, Jens Axel Søgaard wrote: > and it converts the names to “camel case.” > Why do you hurt me, Jens? You always seemed like such a nice person. -- You received this message because you are subscribed to the Google Groups "Racket Users"

Re: [racket-users] Unicode identifiers

2018-05-16 Thread Alex Knauth
> On May 16, 2018, at 6:37 AM, Jens Axel Søgaard wrote: > > Alternative 1: Use filtered-in to require renamed versions. > > ( <>filtered-in >

Re: [racket-users] Unicode identifiers

2018-05-16 Thread Jens Axel Søgaard
Alternative 1: Use filtered-in to require renamed versions. (filtered-in proc-expr require-spec) Applies an arbitrary transformation on the import names (as strings)

Re: [racket-users] ssax:make-parser

2018-05-16 Thread Ryan Culpepper
On 05/15/2018 11:36 PM, John Clements wrote: Interestingly, it looks like this change is a deliberate one, made by Ryan Culpepper back in 2011. Here’s the relevant commit: commit 738bf41d106f4ecd9111bbefabfd78bec8dc2202 Author: Ryan Culpepper Date: Tue Nov 22 02:46:32

[racket-users] Re: Unicode identifiers

2018-05-16 Thread vlaxcompiler
Where you found (string→symbol? Grakcet version you have? Welcome to DrRacket, version 6.11 [3m]. Language: racket, with debugging; memory limit: 128 MB. > (string→symbol "map") . . string→symbol: undefined; cannot reference an identifier before its definition > miercuri, 16 mai 2018,