• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Anyone playing with Scala?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: === WEBAPPZ releases PDFkit 5.4.3 ===
  • Next by Date: Re: Localization
  • Previous by thread: Re: Anyone playing with Scala?
  • Next by thread: Periodic tasks
  • Index(es):
    • Date
    • Thread