osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OT: This Swift thing


Chris Angelico <rosuav at gmail.com> writes:

> On Thu, Jun 5, 2014 at 6:14 PM, Alain Ketterlin
> <alain at dpt-info.u-strasbg.fr> wrote:
>> Swift's memory management is similar to python's (ref. counting). Which
>> makes me think that a subset of python with the same type safety would
>> be an instant success.
>
> In the same way that function annotations to give type information
> were an instant success?

If they were useful, they would be used more. I have made several uses
of (a variant of)

http://code.activestate.com/recipes/578528-type-checking-using-python-3x-annotations/

-- Alain.