dagolden / Path-Tiny

File path utility
41 stars 59 forks source link

Aliases for making copy/move more readable #234

Closed polettix closed 1 year ago

polettix commented 4 years ago

Hi! First and foremost, thanks for this module: I find it great.

I always get some shivers when I read this:

$foo->copy($bar);

Is $foo copied onto $bar or the other way around? I always feel the urge to double check on the docs (at least, after a week or so that I don't use it).

It would be nice to have an alias that makes the whole thing more readable, like:

$foo->copy_to($bar);

The same goes for move/move_to.

Whatever you decide to do with this issue... thanks for your time 😄

xdg commented 1 year ago

On reflection, I think more API changes/aliases just confuse more people and make code more Path::Tiny version centric. Closing.

polettix commented 1 year ago

Thanks for considering :smile: