Handling The aspects of Glish covered so far are available in other languages. The event handling mechanism in Glish is relatively unique. It allows users to create client processes which can communicate with the Glish interpreter by sending and receiving events. An event is simply a name plus a value. The value can be any valid Glish value, except functions, agents, or regular expressions.
Events can be either synchronous or asynchronous.
The results of events sent to a client, here fft , can be used in expressions. In this case, it is just assigned to a variable. Events can also be handled asynchronously. While these examples are very trivial, the concept is very powerful. Distilling the interface to clients down to a basic event dialog results in a minimal well defined interface which makes it easy to plug new clients into the system to replace old ones.