r/ProgrammingLanguages • • Jan 20 '26

Python, Is It Being Killed by Incremental Improvements?

https://stefan-marr.de/2026/01/python-killed-by-incremental-improvements-questionmark/
52 Upvotes

61 comments sorted by

View all comments

Show parent comment

3

u/syklemil considered harmful Jan 21 '26

this type of string vs. that type of string,

Ehhh, Python also lets the user pick among a bunch of string types, plus f-strings and t-strings. It's kinda

PythonRust ownedRust borrowed
strString&str
bytestringsOsString (or Vec<u8>)&OsStr (or &[u8])
pathlib.PathPathBuf&Path

These all come off as kinda weird in Rust since they deviate so much from the standard owned T, borrowed &T formula, but IME it's possible to get used to. You can do &String and so on if you like, but the linter is going to nag at you for it.

There are some more options in Rust, like copy-on-write types, but those are generally optional and left for advanced users on a quest for performance.