Add File.empty? as alias to File.zero?
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.
- file.c (Init_File): add alias File.empty? to File.zero?. [Feature #9969]
#2 [ruby-core:73867] Updated by Lucas Buchala 3 months ago
I added a comment on issue #10121 before knowing this specific issue already existed.
I just wanted to say that, with the arrival of Dir.empty?, I like the idea of the File.empty? alias for the reason of having some symmetry between Dir and File methods.