You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Messages are not currently named consistently, stored in consistent places in files, … . Their organization has some of the same flavor as the organization of commands making up a procedure (#6), whose solution might enable some better compile-time checks (#11).
In the message specification case, one thing you might hope to track are the intended senders / receivers of messages. In applications, we've tried renaming the message classes to follow the format sender->receiver~message-type, but the associated constructors make-sender->receiver~message-type and slot accessors sender->receiver~message-type-slot-name start to look really unwieldy. I think it would be far preferable for Lisp to make use of this message typing information directly: a message type could be defined along the lines of
(defmessage message-type
(:sender type
:receiver type)
(&rest direct-slots))
Then make-message, send-message, and receive-message could all be updated to validate that message generators/receivers are typed as specified by the defmessage payload, rather than putting this burden on the programmer (both their brain and their fingertips).
The text was updated successfully, but these errors were encountered:
Messages are not currently named consistently, stored in consistent places in files, … . Their organization has some of the same flavor as the organization of commands making up a procedure (#6), whose solution might enable some better compile-time checks (#11).
In the message specification case, one thing you might hope to track are the intended senders / receivers of messages. In applications, we've tried renaming the message classes to follow the format
sender->receiver~message-type
, but the associated constructorsmake-sender->receiver~message-type
and slot accessorssender->receiver~message-type-slot-name
start to look really unwieldy. I think it would be far preferable for Lisp to make use of this message typing information directly: a message type could be defined along the lines ofThen
make-message
,send-message
, andreceive-message
could all be updated to validate that message generators/receivers are typed as specified by thedefmessage
payload, rather than putting this burden on the programmer (both their brain and their fingertips).The text was updated successfully, but these errors were encountered: