kh-bd / interp4j

String interpolation library for Java
9 stars 0 forks source link

Interpolation string literals without `s()` call in controlled way #67

Closed KhadanovichSergey closed 1 year ago

KhadanovichSergey commented 1 year ago

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.