[–] bgrainger 13y ago ↗ The list of proposed solutions is missing the single-element enum type approach: http://stackoverflow.com/a/71399 [–] antrix 13y ago ↗ (author here) Two points, (a) I was describing general lazy initialization, not just Singletons and (b)I believe the Enum approach is not lazy.
[–] antrix 13y ago ↗ (author here) Two points, (a) I was describing general lazy initialization, not just Singletons and (b)I believe the Enum approach is not lazy.
2 comments
[ 2.6 ms ] story [ 15.1 ms ] thread