The idea is to allow user to use interpolation feature without s() function call.
For example, instead of such code new RuntimeException(s("interpolated string"));, user could write something like this new RuntimeException("interpolated string")
there is technical ability to interpolate any string literal in java program, but I don't really like such approach. I believe, it should happen in more controlled way. For example, we can use configuration files to mark where it's allowed to interpolate without s() function call.
The idea is to allow user to use interpolation feature without
s()
function call. For example, instead of such codenew RuntimeException(s("interpolated string"));
, user could write something like thisnew RuntimeException("interpolated string")
there is technical ability to interpolate any string literal in java program, but I don't really like such approach. I believe, it should happen in more controlled way. For example, we can use configuration files to mark where it's allowed to interpolate without
s()
function call.