Reitter: Answering the question: "How do I develop an app for GNOME?"
Posted Feb 6, 2013 20:34 UTC (Wed) by khim
In reply to: Reitter: Answering the question: "How do I develop an app for GNOME?"
Parent article: Reitter: Answering the question: "How do I develop an app for GNOME?"
Your examples mostly just made no sense - they worked in an unexpected way because there was really no sane expected behaviour (why should "a" be in any way comparable to 10, for example? What does it mean to add up the contents of a string?).
Of course the examples made no sense! That's exactly the point!
You see, there are statically typed languages (Java, with some limitations C/C++, etc: if you don't use floating point values you are pretty safe there): errors like these will be detected at compile time and you'll fix them before program will be even started for the first time.
There are dynamically typed languages (Lisp, Python, etc): errors like these will be detected at runtime and end-user will see cryptic error message - embarrassing, to be sure, but not the end of the world.
to post comments)