Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news.mixmin.net!newsfeed.utanet.at!newscore.univie.ac.at!aconews-feed.univie.ac.at!aconews.univie.ac.at!not-for-mail Newsgroups: comp.lang.java.programmer From: Andreas Leitgeb Subject: Re: Call by Result References: <95e4uuF3cvU1@mid.individual.net> <8CtIp.4644$PA5.4578@newsfe01.iad> <4df5290c$0$49183$e4fe514c@news.xs4all.nl> <4df77a95$0$49041$e4fe514c@news.xs4all.nl> <_XPJp.2060$g12.487@newsfe20.iad> <6XRJp.10628$5v5.8742@newsfe11.iad> Reply-To: avl@logic.at User-Agent: slrn/pre0.9.9-111 (Linux) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: Date: 15 Jun 2011 12:50:37 GMT Lines: 17 NNTP-Posting-Host: gamma.logic.tuwien.ac.at X-Trace: 1308142237 tunews.univie.ac.at 5640 128.130.175.3 X-Complaints-To: abuse@tuwien.ac.at Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5322 Arved Sandstrom wrote: > On 11-06-14 09:09 PM, Stefan Ram wrote: >> null surely is a /reference value/, but it does not identify >> a string value in the sense of the class String as a class >> whose instances model string values. Yeah, Stefan, that's just how I see it. There's a distinction between reference values and "values"/objects of the particular instance/class type. Unless Scala also has a concept for Some(null) (I do *not* mean Some(None), as that would then be two Option-layers), we can say that Java's references are a stock "Option" wrapper for the actual values. Any further Option layers in Java would not look that simple, but require some explicit container-object, like a singleton-array or a custom one-field class's instance.