From: Phillip Gawlowski Date: 2008-04-08T06:12:06+09:00 Subject: Re: Method parameters Type -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Avdi Grimm wrote: | On Mon, Apr 7, 2008 at 4:28 PM, Mike Blackwell wrote: |> Because, unlike Java, Ruby is not a strongly typed language. | | To be pedantic, both Java and Ruby are strongly typed. However, Java | is statically types, and Ruby is dynamically typed. | Ruby is? irb(main):001:0> t = String.new => "" irb(main):002:0> t.class => String irb(main):003:0> t = 1 => 1 irb(main):004:0> t.class => Fixnum irb(main):005:0> exit Doesn't look like it to me, since I can change the type of a variable with ease. - -- Phillip Gawlowski Twitter: twitter.com/cynicalryan Rule of Open-Source Programming #37: Duplicate effort is inevitable. Live with it. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkf6jiUACgkQbtAgaoJTgL9AOgCfU5pDjiz+K1RP35cLhk9xZnlz 63AAoIKEeH+TUqC82uUoIHke3v+FpnzW =9FdL -----END PGP SIGNATURE-----