[Python-ideas] Python 3.9.9 - The 'I Have A Dream' Version
Steven D'Aprano
steve at pearwood.info
Wed Apr 15 15:19:44 CEST 2015
On Wed, Apr 15, 2015 at 01:26:10AM -0700, Simon Kennedy wrote:
> You're right 'Types' was not the correct term. Is there some term for the
> things that you manipulate in your code as opposed to the things which
> perform the manipulation? Maybe 'operands'?
>
> It was attempt to separate these 2 concepts.
I believe the distinction you want is "data" versus "code", or
perhaps "values" versus "functions".
The trouble is that in Python, functions are values too. You can pass a
function to a function and manipulate it. The term usually used to
describe this is "functions are first-class values". This is a feature,
not a problem to be fixed. In my opinion, any programming language which
separates "data" from "code" is a language not worth using.
If that's not what you mean, you will need to explain in more detail
(perhaps with examples?) what you actually mean.
--
Steve
More information about the Python-ideas
mailing list