interpolation in assertion failure message #3692
[@gavinking] When we implemented assertions, we left one issue for later: how to interpolate expressions into the assertion failure message. Right now, we can write:
Where the string literal is an abbreviated
Could ceylondoc do something reasonable with this? I don't see why not. But is it just to "weird" to suddenly let you have interpolation in a
Alternatively, we could let you write something like this:
is to me less natural than this:
Whatever, either option would be acceptable to me.
[Migrated from ceylon/ceylon-spec#586]
The text was updated successfully, but these errors were encountered:
Today I converted Java code to Ceylon and needed an interpolated assert message, but unfortunately I had to write that message as a comment instead.
FTR I like the fat arrow used in the initial comment, it kinda looks like what I would write when taking notes on paper: