Java's development cycle

naryl cyNOSPAM at ngs.ru
Wed Dec 10 14:18:15 PST 2008


Walter Bright Wrote:

> Bill Baxter wrote:
> > Sounds like you're asking for Lisp.  Small number of features with
> > which you can do just about anything.  All using only oatmeal and
> > toenail clippings!   Lua is a bit like that too, except the toenail
> > clippings part.
> 
> I know about lisp. My problem with it is the syntax. I just don't like it.

Tcl is also quite extensible. It has *very* few syntax rules but looks a lot like C.

C:
    for (int i = 0; i < strlen(str); i++) {
        char c = str[i];
        if (isupper(str[i])) {
            printf("%c\n", str[i]);
        }   
    }   

Tcl:
for {set i 0} {i < [string len $str]} {incr i} {
    set c [string index $str i]
    if {[string is upper $c]} {
        puts $c
    }
}

or

foreach c [split $str {}] {
    if {[string is upper $c]} {
        puts $c
    }
}   




More information about the Digitalmars-d mailing list