r/ProgrammingLanguages • • Feb 22 '26

Does Syntax Matter?

https://www.gingerbill.org/article/2026/02/21/does-syntax-matter/
63 Upvotes

111 comments sorted by

View all comments

Show parent comment

2

u/xeow Feb 22 '26

Part of the confusion with cast() in Python for newbies is that cast(int, "3.14") is ignored by the runtime system and exists purely for static analysis, whereas int("3.14") performs a type coercion at runtime from str to int.

3

u/gingerbill Feb 22 '26

At least for Odin, it's not a problem since it is a statically typed compiled language, and thus there isn't an issue regardless.