运维开发网
广告位招商联系QQ:123077622
 
广告位招商联系QQ:123077622

关于Scala中的String Interpolation

运维开发网 https://www.qedev.com 2020-07-26 14:12 出处:网络 作者:运维开发网整理
Scala provides two other string interpolators by default: raw and f. The raw string interpolator behaves like s, except it does not recognize character literal escape sequences   In Scala, string in

  Scala provides two other string interpolators by default: raw and f. The raw string interpolator behaves like s, except it does not recognize character literal

escape sequences

  In Scala, string interpolation is implemented by rewriting code at compile time. The compiler will treat any expression consisting of an identifier followed

immediately by the open double quote of a string literal as a string interpolator expression. The s, f, and raw string interpolators are implemented via this general

mechanism.

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消