Search:

Type: Posts; User: binary_agartha

Search: Search took 0.09 seconds.

  1. Re: Should Java have a "this" type parameter?

    I don't see how my suggested use of this within the type parameter declaration conflicts with any current use of it. But some other keyword could be used, or some other notation entirely.
  2. Should Java have a "this" type parameter?

    It could look something like this:



    public interface Vehicle {
    public <T:this> T copy();
    }
    public class Car implements Vehicle {
    public <T:this> T copy() { ... }
    }
  3. Why are unnecessary catch blocks for checked exceptions not allowed?

    Suppose my public method readThing() is declared to throw IOException. Someone uses it in a try-catch block. I then revise readThing() to handle the exception and not throw anything. Now they should...
Results 1 to 3 of 3