dzhigital.blogspot.com
dzhigital joy of coding: Nullable AnyVal in Scala
http://dzhigital.blogspot.com/2009/03/nullable-anyval-in-scala.html
Dzhigital joy of coding. Tricks and elegant solutions in Scala or other languages. Saturday, March 28, 2009. Nullable AnyVal in Scala. DISCLAIMER: Please don't treat it too seriously. And never ever use the following code for anything serious. Usually we want to get rid of potential nulls in the code. Here I'll go the opposite way. All things in Scala are instances of classes. Full OO. The base type for everything is Any. On the other hand there are simple types (still objects! Val anyval1: AnyVal = null.
dzhigital.blogspot.com
dzhigital joy of coding: March 2009
http://dzhigital.blogspot.com/2009_03_01_archive.html
Dzhigital joy of coding. Tricks and elegant solutions in Scala or other languages. Saturday, March 28, 2009. Nullable AnyVal in Scala. DISCLAIMER: Please don't treat it too seriously. And never ever use the following code for anything serious. Usually we want to get rid of potential nulls in the code. Here I'll go the opposite way. All things in Scala are instances of classes. Full OO. The base type for everything is Any. On the other hand there are simple types (still objects! Val anyval1: AnyVal = null.
dzhigital.blogspot.com
dzhigital joy of coding: Dynamic method calls in Scala
http://dzhigital.blogspot.com/2009/03/dynamic-method-calls-in-scala.html
Dzhigital joy of coding. Tricks and elegant solutions in Scala or other languages. Wednesday, March 11, 2009. Dynamic method calls in Scala. This is a trick that I showed to quite experienced Scala coders and some were surprised by it. Let's give it some persistence in the blogosphere. If you spent some time hacking Scala you probably heard of "asInstanceOf[T]". Which is a Scala's notation for casting. You probably used it in the way similar to this. Compare this to Java's way of doing reflective call:.
dzhigital.blogspot.com
dzhigital joy of coding: Cloning Scala actors
http://dzhigital.blogspot.com/2009/03/cloning-scala-actors.html
Dzhigital joy of coding. Tricks and elegant solutions in Scala or other languages. Friday, March 20, 2009. I thought I'd base one of my projects on Scala actors. On the other hand seeing how actors are dynamically typed reminded me of my experiments with dynamic, clone based languages (Io, Ioke, Self, JavaScript). The preferred way to create an actor in Scala is something like this:. Val anActor = actor {. Here goes the body of an actor.: a loop, call to receive/react, message patterns. Javalang.Ille...
dzhigital.blogspot.com
dzhigital joy of coding: About the weird title of this blog
http://dzhigital.blogspot.com/2009/03/about-freaking-weird-title-of-this-blog.html
Dzhigital joy of coding. Tricks and elegant solutions in Scala or other languages. Wednesday, March 11, 2009. About the weird title of this blog. Some of you may wonder why I named my blog in such a hard to remember, user unfriendly way. (Hint: Use RSS or bookmark it. Don't try to remember it.). Dzhigital" is a neologism I just came up with after reading on wikipedia about "dzhigit". Picture. (compare to this. The stuff that usually nobody wants to pay you for. . Subscribe to: Post Comments (Atom).