tag:blogger.com,1999:blog-9905395.post7049400006660331502..comments2023-06-13T02:09:57.338-06:00Comments on David Rupp's Blog: Fun With Scala: Reading ScalaDavid Rupphttp://www.blogger.com/profile/16410820024654313029noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-9905395.post-34361371098834794872008-08-27T18:55:00.000-06:002008-08-27T18:55:00.000-06:00Hi, Randin. Thanks for checking in.I haven't so mu...Hi, Randin. Thanks for checking in.<BR/><BR/>I haven't so much "given up" as "had to put it aside". I've been so busy with school (finished that in May) and my work, which is primarily Java-based, that I've just not had the time to do it justice.<BR/><BR/>I do find it interesting that Scala seems to be headed in the direction of Haskell and friends, and not attracting a lot of mindshare with Java programmers. Which is too bad, as I think there's a lot of benefit to be gained by adding Scala to the mix.David Rupphttps://www.blogger.com/profile/16410820024654313029noreply@blogger.comtag:blogger.com,1999:blog-9905395.post-2181875770664471252008-08-27T18:31:00.000-06:002008-08-27T18:31:00.000-06:00How is your work with Lift? I see that you have no...How is your work with Lift? I see that you have not written about it in a few months and was wondering if you've looked at the latest versions or have you given up on it?Randinhttps://www.blogger.com/profile/06738646112339476902noreply@blogger.comtag:blogger.com,1999:blog-9905395.post-70118151034564138852007-11-02T05:14:00.000-06:002007-11-02T05:14:00.000-06:00var - a standard variable like you know it from mo...var - a standard variable like you know it from most other imperative languages. You can assign to it.<BR/><BR/>val - a standard variable, except you can't assign to it.<BR/><BR/>def - a function (in your case without parameter parenthesis, which makes it more like a read-only property). It's reevaluated every time you use it.Ahnfelthttps://www.blogger.com/profile/13418038848142036358noreply@blogger.comtag:blogger.com,1999:blog-9905395.post-35268424790443256682007-11-02T03:48:00.000-06:002007-11-02T03:48:00.000-06:00The foo_ is the 'setter function' for the variable...The foo_ is the 'setter function' for the variable; what it's saying is that there isn't a setter method (because it's a val) and so I'm sorry Dave, I'm afraid I can't do that.<BR/><BR/>The {foo="blah";foo} is the expression that gets created on the fly when you type in the assignment in the interpreter. The last 'foo' means 'return the value of foo' since in Scala, assignment is a statement, not an expression (which is why a=b=0 doesn't work).<BR/><BR/>By the way, you (or others) might like the introductory series I've put together:<BR/><BR/><A HREF="http://alblue.blogspot.com/search/label/scala" REL="nofollow">http://alblue.blogspot.com/search/label/scala</A><BR/><BR/>AlexAlBluehttps://www.blogger.com/profile/06362201865553416948noreply@blogger.com