Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's how Perl's Path::Tiny[1] works, for example:

  path("/tmp/foo.txt")->copy("/tmp/bar.txt");
[1] - https://metacpan.org/pod/Path::Tiny


Amusingly, this has the same ambiguity problem the original post was trying to solve!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: