[prev in list] [next in list] [prev in thread] [next in thread]
List: python-ideas
Subject: Re: [Python-ideas] Declaring immutability (was Re: Proposal to change List Sequence Repetition (*) s
From: Robert Collins <robertc () robertcollins ! net>
Date: 2016-06-01 20:47:47
Message-ID: CAJ3HoZ1pNEYkwmahPwZFihdVrMWwiJCAoCW8ssg+m8eJUaaoBQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On 1 Jun 2016 11:04 PM, "Nick Coghlan" <[email protected]> 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
[Attachment #5 (text/html)]
<p dir="ltr"><br>
On 1 Jun 2016 11:04 PM, "Nick Coghlan" <<a \
href="mailto:[email protected]">[email protected]</a>> wrote:<br> \
><br> ><br>
>... immutable instances, so this is likely to be better approached as a \
type hinting problem rather than as a runtime feature.</p> <p \
dir="ltr">+1</p> <p dir="ltr">> The closest related concept I'm \
personally familiar with is const pointers and references in C and C++, so \
there </p> <p dir="ltr">I think rust borrows are a likely better fit for \
inspiration.</p> <p dir="ltr">-rob<br>
</p>
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic