Link Details

Link 104570 thumbnail
User 111696 avatar

By bloid
via debasishg.blogspot.com
Published: Aug 18 2008 / 10:32

In my last post on Scala actors, I had mentioned about the actor code being side-effect-free and referentially transparent. James Iry correctly pointed out that Scala react is side-effected, since the partial function that it takes processes a message which is neither a parameter to react nor a value in the lexical scope.
  • 11
  • 0
  • 575
  • 155

Comments

Add your comment
User 107114 avatar

daniel replied ago:

0 votes Vote down Vote up Reply

Quite insightful. Concurrency really is all about side-effects, but modularizing the side-effecting sections of the algorithm allows far greater maintainability because the app code itself is all pure-functional.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (11)



Voters Against This Link (0)