« first day (760 days earlier)      last day (133 days later) » 

1:40 PM
0
Q: Spring MVC multiple requests on singleton

user2748323I have a problem with Spring MVC. I am using Stanford NLP and I put initialization of it to singleton class. @Component @Scope("singleton") public class JavaNLP implements NlpInterface { ... @PostConstruct public void init() { if (nlp_object == null) { nlp_object = new Dependenc...

 
 
4 hours later…
user1804599
5:42 PM
@FredOverflow I had a good idea.
 
user1804599
@FredOverflow lol
 
6:19 PM
@райтфолд ....okay?
 
user1804599
I don't like a sub keyword since it's ugly.
 
user1804599
So how about two keywords proc and func. :D
 
proc is just void func, or is there more to it?
 
user1804599
There's more.
 
func results can't be ignored?
 
user1804599
6:23 PM
proc f() {
    g(); // no error if g() does not return Unit
}

func f(): Unit {
    g(); // error if g() does not return Unit
}
 

« first day (760 days earlier)      last day (133 days later) »