Default value for date/time
brian.goetz at oracle.com
Wed May 9 00:59:21 UTC 2018
> Whats the default Currency? USD is a not an acceptable answer. Money
> is the same as it can't exist without a currency.
This is the point we’ve been trying to make. Some types (like Complex) have a natural default (zero), others do not. So the VM provides a uniform treatment — and then the class can be coded to interpret the default value whichever way makes sense for the domain. If Complex has a natural zero, then you need not do anything special. If Currency has no natural default, then a Currency whose bit pattern is the default bit pattern should be coded so its methods throw.
More information about the valhalla-dev