[racket] curious behavior of path-replace-suffix for files beginning with dot?

From: Matthew Butterick (mb.list.acct at gmail.com)
Date: Mon Oct 21 18:38:01 EDT 2013

Looking over the
documentation<http://docs.racket-lang.org/reference/Manipulating_Paths.html#(def._((lib._racket/private/misc..rkt)._path-replace-suffix))>
I'm
not clear why this would be so:

> (path-replace-suffix (string->path ".foobar") "")

#<path:?>


If the behavior is undefined, seems like path-replace-suffix ought to raise
an error rather than return a path that is a single question mark. Or am I
missing something?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20131021/2a486b9c/attachment.html>

Posted on the users mailing list.