Python Forum

Full Version: Python Has Major Problems as Language
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(May-16-2022, 05:27 PM)Larz60+ Wrote: [ -> ]It is technically possible by using ctypes library. (code is actually embedded C)

Indeed.

Now do the same in Jython or IronPython Smile
(May-16-2022, 06:19 AM)Gribouillis Wrote: [ -> ]If you think about it, the only thing that exist from the language's perspective are names.

I would say that names are one thing that Python doesn't have, at least not as a value.

Python has many different kinds of objects: ints and floats and lists and dicts and many, many more, but one thing it doesn't have is names. Names are not first-class citizens in Python -- you cannot pass a name into a function, or return it, or assign it to a variable. When we try, like func(name), the argument that func receives is not a name, but the value bound to that name.

Of course you can do all these things with strings but strings are not names, even if you can use them as names.

If Python had names as a first-class data type, not just strings, then we could simulate pass by name calling conventions without needing eval.
stevendaprano,

Python has not only survived, but flourished since It's first release on October 16, 2000.
Some major implementations are:
YouTube
Instagram
Reddit
Netflix
DropBox
...

Somebody's got to like it.
If you don't like something, just try something new.

I worked in instrumentation (spectra-chemical), and worked almost exclusively with assembler and forth.
Then C for many years. (about 14 years)
Still use C, but for 95% of what I write, I use python.
For embedded work, there's Micropython which will run on many MCU's including ESP32, ESP8266, Pi ...
(May-17-2022, 11:33 AM)Larz60+ Wrote: [ -> ]Python has not only survived, but flourished since It's first release on October 16, 2000.

Python's first public release was 0.9 in February 1991. I started using Python 1.5 in 1998 or so.

I have no idea what happened on October 16 2000, but it certainly wasn't the first release of Python. E.g. Python 1.5.2 was released in April 1999.

You don't have to defend Python to me, or tell me:

Larz60+ Wrote:If you don't like something, just try something new.

I'm not planning on going anywhere. Python has spoiled me for other languages.

Smile
Pages: 1 2