ini senada dengan yang pernah gw tanya trus dibahas di id-perl tempo hari dulu itu. jawaban pak hasan adalah perl bukan bahasa yang strict, kemudian di forward ini james lebih specific ruby-related lagi jawabannya. Puas saya sekarang, kalau ada pakar Perl disini mau menambahkan silakan. :-)
---------- Forwarded message ---------- From: James Edward Gray II <[EMAIL PROTECTED]> Date: Jul 13, 2007 9:24 PM Subject: Re: Why no perl style 'use strict' in ruby. To: ruby-talk ML <[EMAIL PROTECTED]> On Jul 13, 2007, at 8:54 AM, Ben Edwards wrote: > I am however not totaly sure why ruby does not have something like > perls 'use strict'. The strict pragma does three things in Perl. Two of the items are to forbid the use of symbolic references and "barewords." Ruby doesn't support these features, so it's not an issue. The other feature of the strict pragma is to avoid creating random global variables every time one is mentioned. In Ruby, globals look different from other variables (the leading $), so this is not really a problem. Local variables need to be assigned to before use, since that's Ruby's method of declaration. That solves the same problem the strict pragma handles for Perl. James Edward Gray II -- -- Arie || ariekeren, YM!=riyari3, http://ariekusumaatmaja.wordpress.com http://groups.yahoo.com/groups/id-ruby "Never say RTFM. Turn the trolls into committers", Audrey Tang - conisli-ofun.pdf

