From: William Djaja Tjokroaminata Date: 2002-09-13T21:43:09+09:00 Subject: Re: Larry Wall's comments on Ruby Hi, I think in Ruby, if you are sure that in your script there are no others with names such as "cos" and "sin", you could simply put include Math and then you can simply write z = cos(x) * sin(y) Regards, Bill ============================================================================ Gavin Sinclair wrote: > ----- Original Message ----- > From: "Christoph" > Newsgroups: comp.lang.ruby >> Actually I don't really mind so much writing abs(x) or sin(x) >> but I just cannot get over the ``Math'' prefixes Math.cos(x), >> Math.sin(x) .... they are reaaally tacky. >> > Pardon my ignorance, but I don't see what the alternative to Match.cos(x) is, > nor do I understand the talk of namespaces. The only alternative to > Math.cos(x) is Kernel::cos(x), isn't it? That would eventually lead to name > clashes. Is namespaces a solution here? >> /Christoph > Gavin