On Sep 2, 2010, at 13:37 , Ilkka Oksanen wrote: >> 4. I never understood the difference between nullable and optional. >> In Contacts everything that is optional is also nullable. I don't >> see why not (?) > > I might be wrong but isn't the difference that JavaScript function calls > example(1, 2) and example(1) are legal and example(1, null) is not if the > second integer parameter is optional but not nullable. Is there then any > benefit to allow the null case? I'm fine to align Capture API with > Contacts if it is more complex than this. Right. The distinction can be useful when you don't want to pass a given parameter but do want to pass the one after it. In that case you need null: foo.bar(1, null, 2). But it's true that it's confusing and messy in general. It has a stronger impact on Java, but I don't believe anyone cares that much. -- Robin Berjon robineko — hired gun, higher standards http://robineko.com/Received on Tuesday, 7 September 2010 13:49:58 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:14:12 GMT