|
|
|
|
|
by hello_moto
5512 days ago
|
|
Guess what people do in real-life web-services? Instead of being able to send null DateTime, the WS dictates that the client must send something. Therefore, the client sends Epoch date thus the code must handle this properly. What about dealing with Database when NULL actually means something (in certain situation, we do want to put NULL instead of some random value/junk). There's always trade-off. |
|
E.g. I frequently need to check if params are null and then throw an exception at run time. If I could declare a param as requiring a value then the error could usually be caught at compile time.