<p>Actually I don't think this is an over sight. The null string is a String. And Path-String is Path U String, but (path-string? (string #\null)) => #f.</p>
<p>Sent from a mobile device.</p>
<div class="gmail_quote">On Mar 21, 2012 5:14 PM, "John Clements" <<a href="mailto:clements@brinckerhoff.org">clements@brinckerhoff.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Mar 21, 2012, at 3:20 PM, Sam Tobin-Hochstadt wrote:<br>
<br>
> On Wed, Mar 21, 2012 at 5:36 PM, John Clements<br>
> <<a href="mailto:clements@brinckerhoff.org">clements@brinckerhoff.org</a>> wrote:<br>
>> It looks like 'path-string?' is not labeled as a discriminator type.<br>
>><br>
>>> path-string?<br>
>> - : (Any -> Boolean)<br>
>> #<procedure:path-string?><br>
>>><br>
>><br>
>> Is this just an oversight?<br>
><br>
> Yes, that's just an oversight, although it's slightly more complicated<br>
> than you'd think (because `(path-string? (string #\null))' is #f).<br>
<br>
Well, I just made do with (define-predicate ps? Path-String?), so this certainly isn't a major problem.<br>
<br>
John<br>
<br>
<br>_________________________<br>
Racket Developers list:<br>
<a href="http://lists.racket-lang.org/dev" target="_blank">http://lists.racket-lang.org/dev</a><br>
<br></blockquote></div>