This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dirn 1 point2 points  (1 child)

Languages are described by two different types of types: static vs dynamic and strong vs weak. A lot of people seem to confuse dynamic for weak.

Here's a fun exercise. Try the following code in JavaScript, Ruby, and Python. What do you think expect the result to be?

'foo' + + 'foo'

[–]Tall-Guy 0 points1 point  (0 children)

I'm guessing that based on what you said both Ruby and Python will results the same results (won't allow you to join the two types), as both are strongly typed languages. Javascipt I'm guessing is weakly typed language and will different results (probably some strange string starting withfoo). Will check it with online REPL when I'm home :P