Clojure

Message-bearing assert

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: Release 1.3
  • Fix Version/s: Release 1.3
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code
  • Approval:
    Screened

Description

assert should take a String as a second argument. The string is printed when the assert fails.

This is lower hanging fruit than CLJ-415 but much better than the assert we currently have.

In the future, the second argument might be an expression that gets evaluated, but for now, it shouldn't be.

Activity

Hide
Rich Hickey added a comment -

If someone is supplying a message, will they want the original message like that?

Show
Rich Hickey added a comment - If someone is supplying a message, will they want the original message like that?

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: