Re: Anyone playing with Scala?
Re: Anyone playing with Scala?
- Subject: Re: Anyone playing with Scala?
- From: Ravi Mendis <email@hidden>
- Date: Thu, 17 Sep 2009 07:49:02 +0200
You're right - it's not necessarily anti-concurrent.
Just that if you use a static var you must ensure that it is private and its setter is synchronized (or some similar precaution to make its use thread-safe).
Scala offers the convenience of not allowing the developer to ever define a shared value that is not thread-safe.
On Thursday, September 17, 2009, at 07:40AM, "Lachlan Deck" <email@hidden> wrote:
>I'm not sure why static variables would be necessarily anti-
>concurrent? It depends on the type of variable, no? e.g., a static
>string is immutable. A static nsformatter is not re-entrant... etc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden