[ruby-core:71052] Re: [Ruby trunk - Feature #11583] [Open] Add File#unlink

From: Eric Wong <normalperson@...>
Date: 2015-10-12 06:30:02 UTC
List: ruby-core #71052
I do not like this because it will give wrong/unexpected results if the
file is already replaced in any way (via rename, unlink + link/copy).

Tempfile#unlink is bad, for the same reason, too.  In retrospect, it
would be better if :unlink were only a keyword for Tempfile#initialize.

More methods => bigger ruby executable => slower startup.
This is bloat by a thousand cuts.

In This Thread

Prev Next