Skip to content

quadas/rapidstring

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RapidString Travis

RapidString is a faster Scala string interpolation replacement. It is inspired by Fastering (https://github.com/Atry/fastring). Some code is copied from Fastring.

How to use it

RapidString uses string interpolation syntax.

import com.quadas.rapidstring.RapidString._
def poem() {
  val f = "forgotten"
  val m = "machinery"
  rapid"My mouth is snow slowly caking that stiff pigeon. My mouth, the intricately moist $m of a plant. I have $f if I ever had a mouth"
}

It's extremely fast

[TODO] benchmark

Installation

Put these lines in your build.sbt if you use Sbt:

resolvers += Resolver.bintrayRepo("quadas", "maven")
libraryDependencies += "com.quadas" %% "rapidstring" % "0.1.3.2"

See https://bintray.com/quadas/maven/rapidstring/0.1.3.2 if you use Maven or other build systems.

About

A faster Scala string interpolation replacement

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%