« Return to Thread: something like Clojure's "doto"?

Re: something like Clojure's "doto"?

by andreas s. :: Rate this Message:

Reply to Author | View in Thread

Hello!
This seems also impressive to me, now i try to see this construct in a broader context. So it's main purpose would be to encapsulate the instantiation  and method invocation with certain parameters in one construct. Am I missing something essential, else here?

regards andreas
Vlad Patryshev wrote:
Wow, wow. So Scala has to catch up now!...
Yes, this is a beautiful construct.

2009/7/8 Raoul Duke <raould@gmail.com>

> hi,
>
> is there / how might one implement something like
> http://clojure.org/java_interop#toc15 to get (even more) succinctness
> in Scala?
>
> many thanks.
> (i am experimenting with writing it on my own but am so far kinda lost.)
>



--
Thanks,
-Vlad

 « Return to Thread: something like Clojure's "doto"?