From: Tobias Reif Date: 2002-07-31T01:31:41+09:00 Subject: Re: Ruby Language Q's Yukihiro Matsumoto wrote: > |1. Ruby comes with a hell of a lot of features built-in, like the Perl $ > |variables and so on. Shouldn't all this perhaps be classed as an extension? > |I kind of like the idea of a very clean and elegant language out of the box. > > Interesting idea. I think so too. > class PC > def initialize(cpu:, os: "Windows", **info) > @cpu = cpu # "cpu" is a mandatory named arg > @os = os # "os" is with the default value > @info = info # symbol=>value hashtable > end > end > PC.new(os: "Linux", cpu: "P-III", clock: "600MHz", hdd: "30G") This looks very great. Tobi -- http://www.pinkjuice.com/