|
|
| | Ask HN: Interaction programming | | 4 points by dpavlenkov on Oct 30, 2010 | hide | past | favorite | 3 comments | | What would programming process and languages look like if the only way to reflect on a piece of code would be to interact with it? No interfaces, no objects. Sure, message passing, but without knowledge of what's on the other end nor what it likes to receive. Sort of like rumor-exploration framework. My thinking is to send test messages to explore, to reply with informative messages to test requests. But those are just example, primitive cases. |
|

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
|
If I understand you correctly, are you asking for something other than reflection, runtime querying (a la XSLT) and heirarchy traversal (DOM)?
If you think of your "system" as a graph objects that can be traversed; you can require a few messages to be built into a every object, likeconstructors, toString, and generic type-conversion for type-pairs. You can even encode full type description of messages and their arguments, using an schema language XSD, exactly like SOAP does.
Gaaah, I hate underspecified problems that sound interesting.