[racket] Packages not containing a licence

2013-08-31 Thread Lawrence Woodman
Hello, I have been trawling through the packages at: http://pkg.racket-lang.org And have found that very few of the packages have any licensing information and are effectively proprietary software, despite what their authors may have intended. I can therefore study them, but not use them

Re: [racket] Packages not containing a licence

2013-08-31 Thread Neil Van Dyke
Licensing info should be part of the metadata for a package. McFly actually has the licensing info for a package be in the package's info.rkt. McFly includes that info in standard places in the package's formatted documentation. Neil V. Racket Users list:

[racket] Contract for methods with optional arguments

2013-08-31 Thread Diego Sevilla Ruiz
Hi all: I have encountered a situation in which I don't know how to specify the contract for a method that: 1. Has a final optional argument 2. The value of the optional argument makes the method change the return type of the method. It is similar to this: (define/public (get-whatever

Re: [racket] Packages not containing a licence

2013-08-31 Thread Matthew Flatt
I've added license information to all of the packages in the main distribution. Thanks! At Sat, 31 Aug 2013 07:10:21 +0100, Lawrence Woodman wrote: Hello, I have been trawling through the packages at: http://pkg.racket-lang.org And have found that very few of the packages have any

[racket] developing tools

2013-08-31 Thread Stephen De Gabrielle
Hi, I'm starting to fiddle with DrRacket plugin ideas (again), and I was wondering if any tool developers can share their processes for developing tools, What I used to do was dump my tool in a collects directory and run 'raco -L toolname', followed by restarting-the-Doctor. If it failed I would

Re: [racket] Worried about the new package manager not storing each version of a package

2013-08-31 Thread Eli Barzilay
Yesterday, Jay McCarthy wrote: On Fri, Aug 30, 2013 at 10:38 AM, Norman Gray nor...@astro.gla.ac.uk wrote: Would such patches be welcome, or is there in fact a plan/expectation/ resignation to couple Racket to github? They would be very welcome. Github is especially convenient

Re: [racket] Contract for methods with optional arguments

2013-08-31 Thread Greg Hendershott
If I knew the answer I'd tell you, and hopefully someone else will. Meanwhile, another way you could look at this: If it becomes too difficult to write a contract (or documentation) for a function, it might be good to revise the function. For example, a function that takes an optional argument

Re: [racket] Packages not containing a licence

2013-08-31 Thread Hendrik Boom
On Sat, Aug 31, 2013 at 07:10:21AM +0100, Lawrence Woodman wrote: Hello, I have been trawling through the packages at: http://pkg.racket-lang.org And have found that very few of the packages have any licensing information and are effectively proprietary software, despite what their

Re: [racket] developing tools

2013-08-31 Thread Laurent
On Sat, Aug 31, 2013 at 4:21 PM, Stephen De Gabrielle stephen.degabrie...@acm.org wrote: Hi, I'm starting to fiddle with DrRacket plugin ideas (again), and I was wondering if any tool developers can share their processes for developing tools, What I used to do was dump my tool in a

Re: [racket] Contract for methods with optional arguments

2013-08-31 Thread Matthew Flatt
I think want `case-`: (define/contract get-whatever (case- (- (vectorof integer?)) (- exact-nonnegative-integer? integer?)) (lambda ([pos #f]) (if (not pos) inner-vector-of-int (vector-ref

Re: [racket] developing tools

2013-08-31 Thread Jens Axel Søgaard
When writing code that require DrRacket to restart I usually open two DrRackets. In one instance of DrRacket I write the code - this is usually in an old version. In the other I test the code. This way I don't need to reopen the source file after each restart. Another tip: To make DrRacket

[racket] Catch db errors

2013-08-31 Thread Laurent
Is there a way to catch the errors (more like warnings actually) thrown by the db? `with-handlers' does not do the trick since racket does not fail on them, and a little search on the mailing list did not return relevant info. The purpose is to use check-exn and check-not-exn on a generated db.

Re: [racket] Catch db errors

2013-08-31 Thread Ryan Culpepper
On 08/31/2013 12:19 PM, Laurent wrote: Is there a way to catch the errors (more like warnings actually) thrown by the db? `with-handlers' does not do the trick since racket does not fail on them, and a little search on the mailing list did not return relevant info. The purpose is to use

Re: [racket] Contract for methods with optional arguments

2013-08-31 Thread Diego Sevilla Ruiz
Ah, Matthew, thank you. Exactly what I need. I had the impression that I could use these, but I couldn't find examples in the documentation. Best regards, diego. On 31/08/13 17:53, Matthew Flatt wrote: I think want `case-`: (define/contract get-whatever (case-

Re: [racket] Contract for methods with optional arguments

2013-08-31 Thread Diego Sevilla Ruiz
Hi, Greg: On 31/08/13 17:16, Greg Hendershott wrote: If I knew the answer I'd tell you, and hopefully someone else will. Meanwhile, another way you could look at this: If it becomes too difficult to write a contract (or documentation) for a function, it might be good to revise the function.

Re: [racket] Contract for methods with optional arguments

2013-08-31 Thread Matthias Felleisen
On Aug 31, 2013, at 2:19 PM, Diego Sevilla Ruiz wrote: The example you give for C, you're right, it is not appropriate for C because C has a (lax) static type system. Let's call it what it is: unsound. Let's also agree that C's type system is so impoverished that it is simply useless to

Re: [racket] Packages not containing a licence

2013-08-31 Thread Lawrence Woodman
On 08/31/13 13:46, Matthew Flatt wrote: I've added license information to all of the packages in the main distribution. That was quick, I hope it wasn't too much of an ordeal to go through them. Lorry Racket Users list: http://lists.racket-lang.org/users

Re: [racket] developing tools

2013-08-31 Thread Robby Findler
Also, this might help with the dynamic-require approach: http://docs.racket-lang.org/tools/drracket_get_extend.html?q=drracket%3Aget/extend%3Adisallow-re-extension%21#%28def._%28%28lib._drracket%2Ftool-lib..rkt%29._drracket~3aget%2Fextend~3adisallow-re-extension%21%29%29 Robby On Sat, Aug 31,

Re: [racket] Contract for methods with optional arguments

2013-08-31 Thread Robby Findler
You can simulate and -im with -i by adding a mandatory (first) argument with contract any/c. Robby On Sat, Aug 31, 2013 at 6:39 AM, Diego Sevilla Ruiz dsevi...@ditec.um.eswrote: Hi all: I have encountered a situation in which I don't know how to specify the contract for a method