December 10, 2008
bearophile, el  9 de diciembre a las 23:08 me escribiste:
> Walter Bright:
> > I wish it were possible to have a language with just a small set of features that can do everything. C++'s problem is it can approximately do everything but with a boatload of gotcha's, like a const system that almost works but doesn't deliver. Java threw out too much.
> 
> Today lot of people think that the (close) future of programming is in
> languages that run on a VM, like Clojure (a kind of Lisp for the JavaVM
> fitter for multi-core programming). (While I think the far future is in
> things like OMeta and the like).

I loooove XLR[1] ideas in this matter.

[1] http://xlr.sourceforge.net/

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
Tired of lying in the sunshine staying home to watch the rain.
You are young and life is long and there is time to kill today.
And then one day you find ten years have got behind you.
No one told you when to run, you missed the starting gun.
December 10, 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
    }
}

1 2
Next ›   Last »