Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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]
added a commit
Nov 14, 2015
referenced this issue
Jan 4, 2016
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: