[swift-evolution] A mode with no type checking to compete with Python.

Thorsten Seitz thorsten.seitz at web.de
Sun Dec 6 10:52:03 CST 2015


+1

-Thorsten

> Am 06.12.2015 um 01:13 schrieb Austin Zheng via swift-evolution <swift-evolution at swift.org>:
> 
> No, I don't. I think Python's biggest appeal to new programmers is the fact that it has such a great standard library, making it really easy to do whatever you want to do without figuring out how to find or add in external dependencies.
> 
> Anyways, mistyped Python code still breaks, it just breaks at runtime instead of compile time. In fact, I'd argue that this is even less beginner friendly, since you might write a function that works with some inputs and then inexplicably breaks with others.
> 
> Austin
> 
>> On Dec 5, 2015, at 4:09 PM, Amir Michail <a.michail at me.com <mailto:a.michail at me.com>> wrote:
>> 
>> 
>>> On Dec 5, 2015, at 7:05 PM, Austin Zheng via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>> 
>>> ml>
>>> I disagree with the idea that a type system is too much of a hurdle for beginner programmers to overcome.
>> 
>> Don’t you think that Python currently provides a better introduction to programming due to its simplicity?
>> 
>>> 
>>> Austin
>>> 
>>>> On Dec 5, 2015, at 4:01 PM, Kevin Lundberg via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>>> 
>>>> 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. 
>>>> 
>>>> --
>>>> Kevin Lundberg
>>>> 
>>>> On Dec 5, 2015, at 6:50 PM, Adrian Kashivskyy via swift-evolution <swift-evolution at swift.org <mailto: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...
>>>>> 
>>>>> Regards,
>>>>> Adrian Kashivskyy
>>>>> iOS Developer at Netguru
>>>>> 
>>>>>> Wiadomość napisana przez Amir Michail via swift-evolution <swift-evolution at swift.org <mailto: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 <mailto:swift-evolution at swift.org> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
>>>>> _______________________________________________
>>>>> swift-evolution mailing list
>>>>> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
>>>>> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
>>>> _______________________________________________
>>>> swift-evolution mailing list
>>>> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
>>>> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
>>> 
>>> --r‡bžÚḟîẁ
>>> ‰íz{CŠÊhĠ+bḃx§–)Ŷ_______________________________________________
>>> swift-evolution mailing list
>>> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
>>> https://lists.swift.org/ma <https://lists.swift.org/ma>
> 
>  _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151206/a74e56ac/attachment.html>


More information about the swift-evolution mailing list