printing promises should not block

Description

Do not tackle the bigger "abstractions around visibility, delay, blocking" etc. issue. This is a minimal fix:

  • print code already deals with future as a special case

  • should special-case promise as well

  • make a definterface IPromiseImpl that you can switch on

    • right above promise in core.clj

    • has a method that gets you what you need to ask "has-value?"

  • in print code

    • if has value, show it, if not, show :not-delivered

  • make sure to fix print code in both core_print and pprint

Environment

None

Attachments

1

Activity

Show:
Completed

Details

Assignee

Reporter

Approval

Ok

Patch

Code

Priority

Fix versions

Created November 26, 2010 at 4:45 PM
Updated December 8, 2010 at 9:50 PM
Resolved December 8, 2010 at 9:50 PM