2 ms·
Yeah. Languages with no control flow other than "call" and "return" were ok for the 80s... but we know better now. Just add continuations and you get function
by jrockway 17y ago
Yeah. Languages with no control flow other than "call" and "return" were ok for the 80s... but we know better now. Just add continuations and you get functions, coroutines, exceptions, loop exits ("last", "next", etc.), and so on for free.
I am not sure why I'd use this language with no libraries when I could use a better-designed language with no libraries instead.
- telemachos 17y agoIt ain't CPAN yet, but I think "no libraries" is an over-statement: http://golang.org/pkg/ http://golang.org/pkg/
- btilly 17y agoThere are other control flow options available. For example they offer the following simple example of what they call goroutines: ch := make(chan int); go sum(hugeArray, ch); // ... do something else for a while result := <-ch; // wait for, and retrieve, result You can actually set up any complex mess you want of functions talking to other functions through channels. This gives you coroutines, threading, etc. Looking through the spec, it looks like they have anonymous functions and closures as well. While I agree that they need to add exceptions, they do have some interesting things in there already.