[Python-ideas] Declaring immutability (was Re: Proposal to change List Sequence Repetition (*) so it is not useless for Mutable Objects)
Robert Collins
robertc at robertcollins.net
Wed Jun 1 16:47:47 EDT 2016
On 1 Jun 2016 11:04 PM, "Nick Coghlan" <ncoghlan at gmail.com> wrote:
>
>
>... immutable instances, so this is likely to be better approached as a
type hinting problem rather than as a runtime feature.
+1
> The closest related concept I'm personally familiar with is const
pointers and references in C and C++, so there
I think rust borrows are a likely better fit for inspiration.
-rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160602/017be82a/attachment.html>
More information about the Python-ideas
mailing list