« Return to Thread: 2.8.0 Upgrades

Re: 2.8.0 Upgrades

by Erik Engbrecht :: Rate this Message:

Reply to Author | View in Thread

I think the trait File should be split apart so that files and directories have separate traits as follows because there are operations you can perform on files that you can't perform on directories and vice-versa.

trait Path {
  // methods common to both Files and Directories
}

trait Directory extends Path {
  // directory specific methods
}

trait File extends Path {
  // file specific methods
}

I'll post some updates later on tonight.

On Sun, Jun 21, 2009 at 8:21 PM, Josh Suereth <joshua.suereth@...> wrote:
All,

I've started a wiki article to work through upgrading the scalax.io interfaces for 2.8.0 features.   Please let me know your thoughts!

http://wiki.github.com/eengbrec/Scalax.IO/upgraded-io-design-for-280-features

- Josh



--
http://erikengbrecht.blogspot.com/

 « Return to Thread: 2.8.0 Upgrades