Currently Dir.foreach returns a (closed) Dir object.

In keeping with the consistent semantics of File.open, should it not
now return nil?

    File.open()     -> aFile
    File.open() { } -> nil
    Dir.new()       -> aDir
    Dir.foreach {}  -> ?

Regards


Dave