Hi guys
I was thinking back of the playing card game of Hagerty in the Stanford course. In Swift I seldom see lazy instantiation turning up. I remember thad that game had a deck. This deck had cards. Were these cards lazy instantiated?
In swift would you also use the lazy keyword? Would you use a factory to produce these cards?
Thanks!
I was thinking back of the playing card game of Hagerty in the Stanford course. In Swift I seldom see lazy instantiation turning up. I remember thad that game had a deck. This deck had cards. Were these cards lazy instantiated?
In swift would you also use the lazy keyword? Would you use a factory to produce these cards?
Thanks!