[rfc][icedtea-web] immutbale transaltor
Stanislav Baiduzhyi
sbaiduzh at redhat.com
Thu Sep 18 14:51:53 UTC 2014
On Thursday 18 September 2014 09:55:18 Omair Majid wrote:
> I am not disagreeing, btw :) A variant of "your" approach is sort-of the
> recommended approach to enable testing in Working Effectively With
> Legacy Code.
I apologize for intruding, but I have to :)
Jiri's approach is "lazier" than enum. So I'd better summarize it like that:
* if you're working somewhere around serialization - use enum singleton, but
do not expect it to be very lazy.
* if not and singleton instance is really heavy - use holder.
--
Regards,
Stas
More information about the distro-pkg-dev
mailing list