DEV Community

Discussion on: Experiment: Lazy Objects in Swift

floschliep profile image
Florian Schliep Author

Thanks for the feedback, Chris! What would you have used?

I also considered using MyObject and SomeObject, as I needed two types, but Foo and Bar almost feel like a convention now. I'm not opposed to more readable names though!

lobsterpants66 profile image
Chris Shepherd

Yeah Foo.Bar is a convention and lots of people seem OK with it.
I just find practical examples easier to read, something like Person.Age tends to be easier for my brain to absorb.

I'm always looking at examples thinking "when/why would I use this?", your post is perhaps a bit esoteric for a practical example but interesting none the less.