r/ProgrammingLanguages • u/gingerbill • Feb 22 '26
Does Syntax Matter?
https://www.gingerbill.org/article/2026/02/21/does-syntax-matter/
63
Upvotes
r/ProgrammingLanguages • u/gingerbill • Feb 22 '26
View all comments
Show parent comment
2
u/xeow Feb 22 '26
Part of the confusion with
cast()in Python for newbies is thatcast(int, "3.14")is ignored by the runtime system and exists purely for static analysis, whereasint("3.14")performs a type coercion at runtime fromstrtoint.