Re: [racket-users] table lookup shorthands?

2017-08-06 Thread Alex Knauth
> On Aug 6, 2017, at 6:16 PM, Jordan Johnson wrote: > > Hi all, > > I’m writing some music-related code for which I find myself using a lot of > lookup tables, following the pattern of making an alist or hash table and > then writing a function that consults the table. I wound up writing a ma

[racket-users] table lookup shorthands?

2017-08-06 Thread Jordan Johnson
Hi all, I’m writing some music-related code for which I find myself using a lot of lookup tables, following the pattern of making an alist or hash table and then writing a function that consults the table. I wound up writing a macro for this pattern; one example of its use is: ;; key->fifths :

[racket-users] Anyone using MongoDB 3.2.15 with DrRacket 6.9?

2017-08-06 Thread Cecil McGregor
I've run the Quickstart and find some problems when I start adding minor forms. The QuickStart is at https://docs.racket-lang.org/mongodb/Quickstart.html Here is the QuickStart code: #lang racket (require db/mongodb) (define m (create-mongo)) (define d (make-mongo-db m "awesome-dot-com")) (curr

Re: [racket-users] Re: Need help porting a library to Typed Racket

2017-08-06 Thread Ray Racine
And back from the beach ... So I did observe the opaque error when attempting to run: raco test test/unpack/extension.rkt "A" way to clear that error is specify for TR what the procedure does actually return as opposed to punting to Any. unpack really doesn't return Any-thing. It returns a fix

Re: [racket-users] Re: Need help porting a library to Typed Racket

2017-08-06 Thread Ray Racine
Very much hurried and will look at it later ... 1. Don't use (file "xyz.rkt") just change it all to "xyz.rkt". i.e. drop the (file ). 2. The dir MsgPack.rkt uses invalid chars (assume the '.') so change it to say "msgpack/" 3. See 1.7.3 Linking and Developing New Packages in Racket Docs. Run

[racket-users] Re: Need help porting a library to Typed Racket

2017-08-06 Thread hiphish
*bump* I hope bumping is not frowned upon here. I just need to sort this one last issue out -- 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+unsubs