Better String formatting in Scala

前端 未结 7 1245
孤独总比滥情好
孤独总比滥情好 2020-12-02 12:03

With too many arguments, String.format easily gets too confusing. Is there a more powerful way to format a String. Like so:

\"This is #{number}          


        
相关标签:
7条回答
  • 2020-12-02 12:53

    Maybe the Scala-Enhanced-Strings-Plugin can help you. Look here:

    Scala-Enhanced-Strings-Plugin Documentation

    0 讨论(0)
提交回复
热议问题