[racket] Racket v5.93

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Sat Feb 1 07:55:55 EST 2014

Hi Manfred: our plans for 6.0 would not be so ambitious as to include
functions like that. But for releases after that, it is certainly possible.

It will likely be faster if someone were to contribute an implementation,
naturally.

Robby


On Sat, Feb 1, 2014 at 5:11 AM, Manfred Lotz <manfred.lotz at arcor.de> wrote:

> Hi Ryan,
> I have even more wishes for the upcoming 6.0.
>
> On Fri, 31 Jan 2014 18:40:43 -0500
> Ryan Culpepper <ryanc at ccs.neu.edu> wrote:
>
> > Racket v5.93 is now available from
> >
> >    http://racket-lang.org/
> >
>
> Some time ago I mentioned the file functions (like
> file-exists?, ...) are incomplete not dealing with what does exist in
> the wild.
>
> I think it would be a good idea to add something like this:
>
>
>  Function                 used flags
> --------------------------------------------------
>  link-exists?             S_IFLNK
>  directory-exists?        S_IFDIR
>  file-exists?             !S_IFDIR
> --------------------------------------------------
>  regular-file-exists?     S_IFREG
>  socket-exists?           S_IFSOCK
>  pipe-exists?             S_IFIFO
>  block-device-exists      S_IFBLK
>  character-device-exists  S_IFCHR
>  special-file-exists      (and !S_IFDIR !S_IFREG)
> --------------------------------------------------
>
> The first three exist already. The others do not.
>
> The only function using lstat is link-exists?, all other functions
> should use stat.
>
>
> From a unix point of view the implementation should be easy to do in
> file.c. I don't use windows so that I have no clue how these functions
> should behave there.
>
>
> If this would be implemented I would be happy to test it, of course.
>
>
>
> --
> Manfred
>
>
>
>
>
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140201/f608500d/attachment.html>

Posted on the users mailing list.