От: | z00n | ||
Дата: | 23.03.09 21:59 | ||
Оценка: |
Thread-blocking operations can be avoided by using react to wait for new messages (the event-based pendant of receive). However, there is a (usually small) price to pay: react never returns. In practice, this means that at the end of a reaction to a message, one has to call some function that contains the rest of the actor's computation.
My main reason to join Microsoft as the company to infuse
mainstream programming languages with monads and other
functional programming features was that I believed the
quickest road to success would be to work on adding support
for exotic language features to the new Common Language
Runtime [74].