On Jan 2, 2008 5:46 AM, David M. Cook <[EMAIL PROTECTED]> wrote:
> On Tue, Jan 01, 2008 at 10:48:11PM -0800, Chuck Esterbrook wrote:
>
> > I'm interested to hear your impressions, comments and questions.
>
> Some impressive work.  I really like the testing support.

Thanks.

> Kind of hard to use a language without a reference manual, though.

I agree more docs are needed, but I was hoping the How To's, Samples
and current docs could get people bootstrapped:
http://cobralanguage.com/how-to/
http://cobralanguage.com/samples/
http://cobralanguage.com/docs/manual/

Also the parser checks for some Python and C#/Java syntax and gives
specific error messages. Like if you say "int x" for a parameter, it
will remind you that the syntax is "x as int".

> Cobra uses method overloading instead of optional parameters?  Or do we get
> optional parameters, too?

Right now just overloading. I'm in favor of optional parameters, but
haven't put any brain power into the design or implementation. There
are some bigger fish to fry like supporting events so you can write
GUIs.

> One thing I don't like about generics is how nested angle brackets can tend
> to accumulate and quickly make code difficult to read.  So it would be nice
> to have some kind of typedef.  (I think I read that Java 7 will be getting
> something like a typedef).

I think inheritance is sufficient:

class SymbolTable
    inherits Dictionary<of String, Symbol>
    pass

...

    table = SymbolTable()


Though I admit it's not an alias.

-Chuck

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to