On 2017-10-11, Gregory Ewing <greg.ew...@canterbury.ac.nz> wrote:
> Neil Cerutti wrote:
>> I dig
>> const qualifiers, even though I'm comletely fine with their
>> absence from Python.
>
> Out of curiosity, do you have any insights into why you
> like them in C++, if you don't miss them in Python?

I like them in C because it allows the linker to place them in ROM
with the code.  It also _sometimes_ provides useful diagnostics when
you pass a pointer to something which shouldn't be modified to
something that is going to try to modify it.

--
Grant



-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to