Introduce alias of index access on JsPath

27 views
Skip to first unread message

kbigwheel

unread,
Jul 23, 2015, 11:26:00 PM7/23/15
to Play framework dev
Hi!

Because I want to write Json path clearly, then I made this pull request https://github.com/playframework/playframework/pull/4797 in 3 weeks before.
Using it,
> ((JsPath \ "key1")(0) \ "key11")(obj)
is also written as
(JsPath \ "key1" \ 0 \ "key11")(obj)

Give me a feedback!
Should not introduce an alias easily? or is alias character(\) not smart?

Cheers,
Reply all
Reply to author
Forward
0 new messages