[racket-dev] Oversight in type for path-string?

From: John Clements (clements at brinckerhoff.org)
Date: Wed Mar 21 20:13:42 EDT 2012

On Mar 21, 2012, at 3:20 PM, Sam Tobin-Hochstadt wrote:

> On Wed, Mar 21, 2012 at 5:36 PM, John Clements
> <clements at brinckerhoff.org> wrote:
>> It looks like 'path-string?' is not labeled as a discriminator type.
>> 
>>> path-string?
>> - : (Any -> Boolean)
>> #<procedure:path-string?>
>>> 
>> 
>> Is this just an oversight?
> 
> Yes, that's just an oversight, although it's slightly more complicated
> than you'd think (because `(path-string? (string #\null))' is #f).

Well, I just made do with (define-predicate ps? Path-String?), so this certainly isn't a major problem.

John

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4624 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20120321/195d859e/attachment.p7s>

Posted on the dev mailing list.