Re: [racket-users] Idiomatic way to include numbers in a map?

2017-03-03 Thread David Storrs
That's very cool. Thank you, Matthew. On Fri, Mar 3, 2017 at 6:50 PM, Matthew Butterick wrote: > > On Mar 2, 2017, at 9:17 AM, David Storrs wrote: > > I could, it's just extremely more verbose and therefore obfuscates what's > actually going on as

Re: [racket-users] change 'random' contract to allow zero in first position?

2017-03-03 Thread Ben Greenman
https://github.com/racket/racket/pull/1626 -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit

[racket-users] Re: create keyword in syntax

2017-03-03 Thread Dan Liebgold
On Friday, March 3, 2017 at 3:47:15 PM UTC-8, Dan Liebgold wrote: > Is there something like format-id that can create a keyword in a syntax > transformer? > Searching the interwebs yielded this: ;; identifier->keyword : Identifer -> (Syntaxof Keyword) (define (identifier->keyword id)

Re: [racket-users] Idiomatic way to include numbers in a map?

2017-03-03 Thread Matthew Butterick
> On Mar 2, 2017, at 9:17 AM, David Storrs wrote: > > I could, it's just extremely more verbose and therefore obfuscates what's > actually going on as compared to the 'map' form. Why not turn it into a macro that preserves your preferred notation: #lang racket

[racket-users] create keyword in syntax

2017-03-03 Thread Dan Liebgold
Is there something like format-id that can create a keyword in a syntax transformer? Thanks, Dan -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [racket-users] change 'random' contract to allow zero in first position?

2017-03-03 Thread 'John Clements' via Racket Users
> On Mar 3, 2017, at 12:02 PM, Daniel Prager wrote: > > > > On Sat, Mar 4, 2017 at 6:21 AM, John Clements > wrote: > > > On Mar 2, 2017, at 3:00 PM, Daniel Prager wrote: > > > > While we're at it, please

Re: [racket-users] change 'random' contract to allow zero in first position?

2017-03-03 Thread Daniel Prager
On Sat, Mar 4, 2017 at 6:21 AM, John Clements wrote: > > > On Mar 2, 2017, at 3:00 PM, Daniel Prager > wrote: > > > > While we're at it, please allow negative arguments too, to allow for > cases such as > > > > (random -100 100) > > Well,

Re: [racket-users] change 'random' contract to allow zero in first position?

2017-03-03 Thread 'John Clements' via Racket Users
> On Mar 2, 2017, at 2:06 PM, Jay McCarthy wrote: > > I think that the contract is overly specific on the 2 argument case. > But on the 1 argument case, I don't think 0 makes sense: > > "When called with an integer argument k, returns a random exact > integer in the

Re: [racket-users] change 'random' contract to allow zero in first position?

2017-03-03 Thread 'John Clements' via Racket Users
> On Mar 2, 2017, at 3:00 PM, Daniel Prager wrote: > > While we're at it, please allow negative arguments too, to allow for cases > such as > > (random -100 100) Well, that’s different; that’s actually changing the implementation. I’m not proposing that… John

Re: [racket-users] Question about how to number equations under scribble-math module

2017-03-03 Thread Matthew Flatt
There's not currently a direct way to do what you want, as far as I know. There's a relevant library in `scriblib/private/counter`, which is used to implement the counters for `scriblib/footnote` and `scriblib/figure`. As "private" in the module name suggests, however, it was never turned into

Re: [racket-users] raco test: 0 tests run, 1 test passed

2017-03-03 Thread Jay McCarthy
Hi Alex, It is a bit confusing. There's a lot of history to the message. It used to be that rackunit only had the test-suites, test-cases, and the checks. It tries very hard to NOT count the checks as "tests". Later, the checks were exposed so you didn't have to but them in test-suites and