[swift-evolution] A mode with no type checking to compete with Python.
kevin at klundberg.com
Sat Dec 5 18:01:59 CST 2015
This is somewhat possible today on Apple platforms with AnyObject. You can call any objc-visible method on AnyObject and it will compile, and the return type will also be AnyObject (I don't recall if the return type is optional as well or not). This doesn't work with value types, but neither does id in objc.
Having a more complete lax typed mode similar to Python or php I think is of limited usefulness, would add too much complexity to the language, and yield too much uncertainty about any given piece of swift code.
> On Dec 5, 2015, at 6:50 PM, Adrian Kashivskyy via swift-evolution <swift-evolution at swift.org> wrote:
> I can't believe I'm seeing a proposal to remove type safety, one of the fundamental features of Swift...
> Adrian Kashivskyy
> iOS Developer at Netguru
>> Wiadomość napisana przez Amir Michail via swift-evolution <swift-evolution at swift.org> w dniu 05.12.2015, o godz. 20:51:
>> Python is still easier than Swift for beginning programmers. But maybe such a mode can allow Swift to be used by beginners also? _____________________________________________ swift-evolution mailing list swift-evolution at swift.org https://lists.swift.org/mailman/listinfo/swift-evolution
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution