Hi, everyone,

I've been reading compiler2.rb (I still need to read it two or three
times more). I still don't know how to do some details, but here is my
idea.

signature name, array => return

where array is exactly like now but if some parameter is optional,
then it is given in the form [class, initial_value]. Just think that
brackets are constructors, and it could be even nested like
[[MagickImage [BufferedImage, 500, 700]]] => MagickImage would be a
method like def a(magick_image=Geometry.new(500,700)) (returning a
MagickImage object. My first thought wast to create a optional
parameter :optional in the hash with and array of optional parameters.
But this wouldn't be valid in Ruby 1.9.

Problems:

· Typing too much.
· Not the ruby way (it seems Lisp with brackets).
· Is overload methods hard in jvm?
· How can string objects be introduced in bitescript?

Cheers,

Serabe

-- 
http://www.serabe.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to