<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Dealing with NULLs in ScalaQuery</title>
	<atom:link href="http://szeiger.de/blog/2009/06/20/dealing-with-nulls-in-scalaquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://szeiger.de/blog/2009/06/20/dealing-with-nulls-in-scalaquery/</link>
	<description>Stefan Zeiger's Software Development Weblog</description>
	<lastBuildDate>Fri, 16 Dec 2011 10:09:44 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Stefan Zeiger</title>
		<link>http://szeiger.de/blog/2009/06/20/dealing-with-nulls-in-scalaquery/comment-page-1/#comment-48</link>
		<dc:creator>Stefan Zeiger</dc:creator>
		<pubDate>Sun, 21 Jun 2009 15:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://szeiger.de/?p=27#comment-48</guid>
		<description>Ah, that&#039;s unfortunate. I knew about casting null values to boxed Any values but not about this AnyVal initializer. It&#039;s mentioned in this bug report along with similar situations: https://lampsvn.epfl.ch/trac/scala/ticket/1470</description>
		<content:encoded><![CDATA[<p>Ah, that&#8217;s unfortunate. I knew about casting null values to boxed Any values but not about this AnyVal initializer. It&#8217;s mentioned in this bug report along with similar situations: <a href="https://lampsvn.epfl.ch/trac/scala/ticket/1470" rel="nofollow">https://lampsvn.epfl.ch/trac/scala/ticket/1470</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Phillips</title>
		<link>http://szeiger.de/blog/2009/06/20/dealing-with-nulls-in-scalaquery/comment-page-1/#comment-47</link>
		<dc:creator>Paul Phillips</dc:creator>
		<pubDate>Sun, 21 Jun 2009 03:47:44 +0000</pubDate>
		<guid isPermaLink="false">http://szeiger.de/?p=27#comment-47</guid>
		<description>&quot;Except there is one thing you cannot do with Scala’s value types: They may never be null.&quot;

scala&gt; class X { var a: AnyVal = _ }
defined class X

scala&gt; def foo(v: AnyVal) = v.toString
foo: (v: AnyVal)java.lang.String

scala&gt; foo((new X).a)
java.lang.NullPointerException</description>
		<content:encoded><![CDATA[<p>&#8220;Except there is one thing you cannot do with Scala’s value types: They may never be null.&#8221;</p>
<p>scala&gt; class X { var a: AnyVal = _ }<br />
defined class X</p>
<p>scala&gt; def foo(v: AnyVal) = v.toString<br />
foo: (v: AnyVal)java.lang.String</p>
<p>scala&gt; foo((new X).a)<br />
java.lang.NullPointerException</p>
]]></content:encoded>
	</item>
</channel>
</rss>

