Re: Class/Interface Modeling of Ranges

2009-11-23 Thread dsimcha
== Quote from BCS (n...@anon.com)'s article Hello dsimcha, 3. Can we simplify this by using runtime exceptions instead of compile time errors for some of this stuff? For example, every range would have a hasLength() method and a length() method. If hasLength() is false, length() would

Re: Class/Interface Modeling of Ranges

2009-11-21 Thread Lutger
dsimcha wrote: ... 3. Can we simplify this by using runtime exceptions instead of compile time errors for some of this stuff? For example, every range would have a hasLength() method and a length() method. If hasLength() is false, length() would throw. Though this sacrifices compile