Hello everyone!
First of all, I know swift goes into a bit different direction for super type
safety, but the problem that is going to describe is kind of common to anybody
who use general purpose library (that are not bound to any big UI/non-UI
framework).
I’m a game-engine and deep learning
Recently I’ve seen some upcoming changes for #keyPath, but the whole things
look a bit messy to me. Today I came up with a simple idea of code generation,
but I thought maybe it would be nice to make this a part of the language?
Look at this code:
public class Foo {
public var a: Int = 0
}
There is a lot of talk about stored properties in extensions. But do we really
need them?
Instead I think we can introduce something like partial classes from C#. It is
an often case our classes go hell of a big and we have to move some methods to
dedicated extensions to increase readability. I