Introducing Cobra
SJS
bpfh at stremler.net
Sun Jan 6 14:40:00 PST 2008
begin quoting Chuck Esterbrook as of Sun, Jan 06, 2008 at 02:28:15PM -0800:
> On Jan 4, 2008 1:55 AM, SJS <bpfh at stremler.net> wrote:
[chop]
> > Hm... and don't you lose that keystroke savings by having stuff like
> > "as" and "of" as keywords? (If I'm reading the examples correctly,
> > you use "i as int" instead of "int i", which is an additional 3
> > keystrokes...
>
> Yep, but I consider names to be really important and I prefer to have
> them up front:
>
> class Point
>
> var _x as int
> var _y as int
>
> Also, if you use dynamic typing, like in Smalltalk or Python, you can
> just leave them off:
>
> class Point
>
> var _x
> var _y
Okay. So instead of having a "dynamic type" (a la ObjC's "id"), you
have optional static typing.... gotcha.
Did you keep the Smalltalk(ish?) "respondsTo:" concept?
[snip]
> > Worked for perl, didn't it? :)
>
> For a time, but Python continues to rise while Perl continues to sink:
> http://www.tiobe.com/tpci.htm
Well, that's because it's the new shiny.
[chop]
> > I actually would be really okay with a compiler that *complained*
> > about indentation inconsistencies.
> >
> > Honest!
>
> ???
>
> Are you really Stuart?
Nope.
Never been a Stuart.
--
Some say I was named for the kings of old
Buried, dead, decomposing, and quite cold.
Stewart Stremler
More information about the KPLUG-LPSG
mailing list