[ruby-core:76384] [Ruby trunk Feature#9969] Add File.empty? as alias to File.zero?

From: johncbackus@...
Date: 2016-07-18 03:56:07 UTC
List: ruby-core #76384
Issue #9969 has been updated by John Backus.


For the sake of consistency could you also add `Pathname#empty?`

----------------------------------------
Feature #9969: Add File.empty? as alias to File.zero?
https://bugs.ruby-lang.org/issues/9969#change-59632

* Author: Robert A. Heiler
* Status: Closed
* Priority: Normal
* Assignee: 
----------------------------------------
Could we alias File.empty? to File.zero? ?

The latter already exists. I tried to use File.empty? 
and then thought it would not exist, but the code
already exists, it is just called File.zero? instead.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next