Link Details

Link 56114 thumbnail
User 111696 avatar

By bloid
via alblue.blogspot.com
Published: Dec 06 2007 / 11:44

In the previous post, we covered using the compiler and packages. This time, we'll be looking at one of the features that makes Scala stand out above the rest; case classes and matching. The idea behind case classes is to support data encapsulated as an object, but to also support structural matching of the data as well. A case class is defined in much the same way as an ordinary class, except that the class definition is prefixed with case:
  • 14
  • 0
  • 1081
  • 285

Comments

Add your comment
User 258552 avatar

bluterminus replied ago:

0 votes Vote down Vote up Reply

scala seems interesting

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 (14)



Voters Against This Link (0)