Typically, Scala characters can be thought of as a unique identifier that will always be the same. Each character that is lexically graphically identical refers to the same memory space. There is nothing special about them from the point of view of Scala.
Dispatch-Json , JSON. , , SymOp JsonExtractor.scala.
, , , , :
trait ExtUserProps extends UserProps with Js {
val friends_count = 'friends_count ! num
}
object ExtUser extends ExtUserProps with Js
val good_stuff = for {
item <- http(Status("username").timeline)
msg = Status.text(item)
user = Status.user(item)
screen_name = ExtUser.screen_name(user)
friend_count = ExtUser.friends_count(user)
} yield (screen_name, msg, friend_count)
, , - UserProps Dispatch-Twitter, friends_count, ExtUser, . ExtUserProps UserProps, Js, sym_add_operators , 'friends_count case SymOp. ! SymOp, Extractor num, Extractor, "friends_count" JSON, . .
- , Twitter JsObjects, , Status.text , , . screen_name friend_count JsObject , , Tuple3 , . [Tuple3 [String, String, BigDecimal]], , .
, . Dispatch , , Scala, - Scala . , , , DSL Scala.