[racket-dev] `collection-path' Considered Brittle

From: Asumu Takikawa (asumu at ccs.neu.edu)
Date: Mon Nov 4 14:40:39 EST 2013

On 2013-11-04 11:49:44 -0600, Robby Findler wrote:
>    collection-path is legacy and should generally be removed when you find it
>    (I think I fixed two uses of it Saturday in fact).
>    But hopefully you could use collection-file-path in most cases instead of
>    a collections-path function.

There are still some cases where you may want a `collection-paths`
function instead though. For example, it would be useful for
`raco-find-collection` so that when a user asks for `typed-racket`, it
can pick a better default than the alphabetic ordering.

(right now you have to ask for `typed-racket/core` to disambiguate,
 which corresponds to using `collection-file-path`)

For my purposes, I could just copy+paste the code in the compiler-lib,
but maybe it should be moved into the core?

Cheers,
Asumu

Posted on the dev mailing list.