July 2010
2 posts
1 tag
a well formed cupcake
Here’s a simple little sprinkle for anyone wondering how to serve xml with self-closing tags in Scala. The basic cooking ingredients in Scala’s xml kitchen will output closing tags, even when the recipe does not call for them. val selfClosingCupcake = <cupcake /> Will always unsuspectingly return <cupcake></cupcake> When your cupcakes are html tags,...
Jul 19th
2 notes
1 tag
please yield to passing monads
One of the most common functional programming topics tossed about in the Scala community are monads. Even if you may not know what they are, chances are, you probably use them all the time. Though there are already some decent postings on monads in Scala, I’d like to take a time out and describe how they are used in the Scala you probably use every day. Raise your hand if you’ve...
Jul 11th
2 notes