On Tue, 12 Jun 2001, Mathieu Bouchard wrote: > First question, in the process of making RubyAST.rb into real runnable > ruby code... > > *** What syntax do you prefer for the following metatypes? *** > > choice (a set of values): > > choice foo,bar,baz (current RubyAST,RubyX11) > ChoiceType.new foo,bar,baz > ChoiceType.of foo,bar,baz > ChoiceType[foo,bar,baz] > Choice.new foo,bar,baz > Choice.of foo,bar,baz > Choice[foo,bar,baz] > ... > Could you briefly summarize the benefits from having these MetaTypes? Is it to get "automatic" semantics checking? In Rockit I simply build AST tree nodes by instantiating tree node class and specializing with the names of childrens. More flexible but probably too flexible? I'd like to convert to your scheme... /Robert