The syntax you suggest seems reasonable. I’m less tied to how it’s written than where, because I generally find bugs caused by interactions of diffusely written code to be simultaneously easy to make and hard to diagnose. This is partially why I love GC and DI so much - manually managing object lifecycle has caused me no end of frustration over the years.
↧