actors: Define "<-" type aliases for send-message and friends.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 27 Apr 2016 13:24:28 +0000 (08:24 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 27 Apr 2016 13:24:28 +0000 (08:24 -0500)
* 8sync/systems/actors.scm (<-, <-wait, <-reply, <-reply-wait): Aliases
  for send-message, send-message-wait, reply-message, reply-message-wait
  respectively.

8sync/systems/actors.scm

index 9009d301470a1c9872fd32cfe306b5f1b1b1653d..fb170bc45a1af34c86d557240da60cb7d22925af 100644 (file)
@@ -71,6 +71,8 @@
             send-message send-message-wait
             reply-message reply-message-wait
 
+            <- <-wait <-reply <-reply-wait
+
             ez-run-hive
             bootstrap-message
 
@@ -246,6 +248,16 @@ If key not found and DFLT not provided, throw an error."
     (abort-to-prompt abort-to from-actor new-message)))
 
 
+;;; Aliases!
+;;; See: http://mumble.net/~jar/articles/oo-moon-weinreb.html
+;;;   (also worth seeing: http://mumble.net/~jar/articles/oo.html )
+
+(define <- send-message)
+(define <-wait send-message-wait)
+(define <-reply reply-message)
+(define <-reply-wait reply-message-wait)
+
+
 \f
 ;;; Main actor implementation
 ;;; =========================