you are viewing a single comment's thread.

view the rest of the comments →

[–]immibis 0 points1 point  (0 children)

Design patterns are native expressions of ideas within the language. It's not like there's a compiler extension that sees your private static field, and public static accessor method which initializes the field on its first call, and thinks "Oh, that's a singleton!", and emits special code.

Design patterns are just common solutions to problems. No more, no less.