Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!dptg!att!cbnewsk!ech From: ech@cbnewsk.ATT.COM (ned.horvath) Newsgroups: comp.sys.mac.programmer Subject: Re: New programming language: SCRIPTIC Message-ID: <1052@cbnewsk.ATT.COM> Date: 21 Sep 89 03:13:15 GMT References: <327@wmt.UUCP> Organization: AT&T Bell Laboratories Lines: 33 From article <327@wmt.UUCP>, by vila@wmt.UUCP (Vincent van der Laan): > It is a new computer language called SCRIPTIC that greatly simplifies > parallel and event driven programming... > Just one simple example to get you interested: the following program > prints 'Hello' when you press 'h' or 'Goodbye' when you press 'g'. > > main = Key('h'!); {printf("Hello")} | Key('g'!); {printf("Goodbye")} I think I need a more compelling example. Shucks: for (;;) { switch (getc()) { case 'h': printf ("Hello"); break; case 'g': printf ("Goodbye"); break; default: continue: } break; } Now, this may be a bit more verbose, but the flow is pretty obvious, the extensibility (to have more than h and g) is pretty obvious, and I'm a bit uncomfortable with the operator binding ( ; has higher precedence than | has higher precedence than =. This could be interesting...). Don't take me wrong: this may be a step forward. But you need to show a bit more... =Ned Horvath=