Source: Model Driven Solutions ( Ed Willink)
8.4.4 4 defines
The notation “blabla %s\n” % myvar involving the binary '%' operator is a shortand for invoking the pre-defined 'format' operation.
The inconsistent punctuation and lack of the longhand '"blabla %s\n".format(myvar)' makes for a hard read; which % is the shorthand?
This really does not seem very useful. The textual saving is small, it only works for single argument formats, it introduces precedence challenges once the missing precedence is specified.
(Eclipse QVTo does not implement the shorthand.)
Suggest delete the shorthand.
Reported: QVT 1.3 — Mon, 19 Dec 2016 09:50 GMT
Updated: Mon, 19 Dec 2016 09:50 GMT