k06a / boolinq

Simplest C++ header-only LINQ template library
MIT License
628 stars 79 forks source link

Return something other than nan, when no records are found. #33

Closed fledglings closed 5 years ago

fledglings commented 5 years ago

Is it possible to return a NULL, or perhaps a predefined string, instead of NaN when no records are found?

Attempting to retrieve data that does not exist does not feel like exceptional behaviour to me.

Thanks

k06a commented 5 years ago

You can pass default value argument into methods:

Is that enough?