[Development] QOptional

Marc Mutz marc.mutz at kdab.com
Thu Aug 21 17:00:40 CEST 2014


On Thursday 21 August 2014 13:18:35 Иван Комиссаров wrote:
> Conclusion - we have 6 identical checks which can be avoided using
> QOptional
> 
> So, i still think that simply returning QNothing() from these functions is
> a great improvement.

I'd say throwing an exception is what should happen, but I know that's frowned 
upon in Qt, so let's continue to let every class, nay, function, define its own 
error reporting scheme :)

Marc

-- 
Qt Developer Days 2014 - October 6 - 8 at BCC, Berlin

Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions



More information about the Development mailing list