I don't see how it's magical. The function joinpath(path1,path2) gives the
path of path2 relative to path1 – that's what it means. When path2 is
absolute, path1 doesn't matter to answer that question.

On Thu, Feb 5, 2015 at 2:06 PM, Milan Bouchet-Valat <[email protected]>
wrote:

> Le jeudi 05 février 2015 à 13:55 -0500, Stefan Karpinski a écrit :
> > When you open the file referred to by path2, that is essentially
> > looking at joinpath(pwd(), path2) and this is just a generalization of
> > that that behavior relative to path1 instead of pwd() specifically.
> > This is also how Python does it, although there seems to be some
> > confusion due to that as well.
> Indeed. Isn't this behavior a bit too magical for the Julian philosophy?
> Is convenience worth the increased confusion here? Maybe this behavior
> should only be enabled via a keyword argument?
>
>
> Regards
>
> > On Thu, Feb 5, 2015 at 12:36 PM, Davide Lasagna
> > <[email protected]> wrote:
> >         I know this is documented by what is the rationale for
> >         joinpath(path1, path2) to return path2 if path2 looks like an
> >         absolute path?
> >
> >         Cheers,
> >
> >         Davide
> >
> >
> >
> >
>
>

Reply via email to