Blogs: Type-safe Builder Pattern in Scala

  1. Type-safe Builder Pattern in Scala (1 messages)

    If your starting out with Scala, then you may be curious as to how the same patterns applied in Java look in Scala's syntax. Rafael de F. Ferreira takes you through the type-safe builder pattern in Scala, explaining various code listings on how this pattern is applied to Scala. Read Rafael de F. Ferreira post on Type-safe Builder Pattern in Scala http://blog.rafaelferreira.net/2008/07/type-safe-builder-pattern-in-scala.html

    Threaded Messages (1)

  2. For java too...[ Go to top ]

    This is particularly elegant in that it prevents construction of incompletely specified instances. You could even use a similar approach in Java...