Hacker News new | ask | show | jobs
by Qantourisc 4695 days ago
Or even better then double:

inline void updateCachedWidth() { m_cachedWidth = computeWidth() * deviceScaleFactor(); }

Ghee, was that line so hard to read ? No it's easier ! (Might have just been an example though.)

2 comments

I was also wondering why this wasn't done, it must have been an example that was reduced in size.
Came here to ask about this, found your answer. Thanks.