« first day (790 days earlier)      last day (103 days later) » 

6:57 AM
0
Q: Singleton class issue

PulkitI have a singleton class which is created using inner class init method. Singleton class: public class RouterManager { private static class RmInstanceHolder { public static final RouterManager INSTANCE = new RouterManager(); } public static RouterManager getInstance() { ...

 
 
9 hours later…
3:37 PM
@райтфолд New Project: Scala.php
 
 
2 hours later…
user1804599
5:34 PM
@fredoverflow :P
 
user1804599
 
@райтфолд contravariant must be the longest keyword ever. C# uses in.
 
user1804599
I have in and out!
 
So reuse them for that purpose?
 
user1804599
Problem with + and - is that they're unary operators. :P
 
user1804599
5:40 PM
union Option(+T) { … } would apply prefix+ to T. :[
 
urinary operators
 
user1804599
@fredoverflow Good idea. :)
 
user1804599
I also use invariant for invariant contracts already, so I can use that for invariant type parameters as well!
 

« first day (790 days earlier)      last day (103 days later) »