Daily scala

A short daily dose of scala examples and occasionally explanations.

Monday, November 30, 2009

Overloaded Unapply

›
This topic is related to previous posts on matching. I recommend reading some of them as well: Basic Matching Extractors 1 Extracting Seque...
1 comment:
Friday, November 27, 2009

Defining Custom Control Structures

›
Scala has only a handful of built-in control structures: for, while, try-catch, if, etc... However it is quite simple to define custom cont...
6 comments:
Wednesday, November 25, 2009

Good Scala Style

›
This topic is a bit of a departure from the normal but is very important. The goal of these posts has not been(necessarily) to introduce go...
3 comments:

Varargs

›
Both Java and Scala have varargs. In Scala the syntax for a varargs argument is def  method (param:String*) . In the off-chance you are not...
3 comments:
Tuesday, November 24, 2009

Equals, Tuples and Case-classes

›
This is mostly a quick tip (or opportunity for refactoring). Most of Scala's built in classes implement a useful equals and hashcode. ...
Sunday, November 22, 2009

Type aliasing and implicit conversions in harmony

›
This topic combines advanced two topics. types and implicit methods. This topic is not really intended to be instructional as much as a il...
3 comments:
Friday, November 20, 2009

Either

›
The Scala Either class is similar in function as Option but it represents a choice. For example a method can return Either an Int or an Exc...
1 comment:
‹
›
Home
View web version

About Me

Unknown
View my complete profile
Powered by Blogger.