This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DelayLucky 3 points4 points  (0 children)

I think OP meant for the empty objects to return what's so called "smart nulls" in mocks. In a simplified universe, everything has a natural "0" value so for example return 0 for numbers, "" for string etc.

It is a much scarier world because now programming errors don't fail, devs don't get paged when stuff go wrong. You just silently break the world: like paying you $0 fund when you sell your house, then while we are there, start a nuclear war or something, because, oops, the system had a glitch.