[swift-evolution] struct finalization constraint for protocols

2017-04-13 Thread Andrey Volodin via swift-evolution
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

[swift-evolution] Unify the way properties and methods work to make key-value coding more natural

2017-04-12 Thread Andrey Volodin via swift-evolution
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 }

[swift-evolution] Partial class declaration

2016-12-10 Thread Andrey Volodin via swift-evolution
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