From: Chad Perrin Date: 2008-09-09T09:42:29+09:00 Subject: Re: Why is Ruby dynamic? --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 07, 2008 at 02:39:37PM +0900, Bertram Scharpf wrote: > Hi, >=20 > Am Sonntag, 07. Sep 2008, 14:04:15 +0900 schrieb Avdi Grimm: > > 2008/9/6 Zhao Yi : > > > It is also same for other scripts like perl, python, so they are all > > > dynamic language? > >=20 > > Yup. >=20 > Try to do something like this in Python: >=20 > class Time > def german > strftime "%d.%m.%Y, %X" > end > end > class Numeric > def MB > self/1024.0/1024.0 > end > end Python is "dynamic" compared to, say, C or Java. People tend to want to classify languages in a black/white manner, putting some languages on one side of a dividing line between "dynamic" and "static", and other languages on the other side. The way most people view these things, Perl, Python, and Ruby are all "dynamic". That doesn't mean they're all *equally* dynamic, of course -- as you point out. The fact they aren't all equally dynamic doesn't mean Python isn't "dynamic" as well. >=20 > It's dynamic because it produces dynamic programmers. That's certainly one way to look at it -- and it does indeed seem to at least facilitate, if not produce, "dynamic programmers". --=20 Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ] Olin Shivers: "I object to doing things that computers can do." --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjFxb8ACgkQ9mn/Pj01uKUsKQCeIkKP5u0OQbLwm/TDjacMiNPO MloAoMYhA57ygu5ZEmSiOl2ZlRsX75Tr =AK7p -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--