1
19
你在MEAP(早期访问)书中有一个很好的来源
scalatest 以下是DSL的经典示例:
还有许多其他基于DSL的框架: def songCountByArtistId: Query[GroupWithMeasures[Long,Long]] = from(artists, songs)((a,s) => where(a.id === s.artistId) groupBy(a.id) compute(count) ) |
2
6
创建以下JSON:
|
3
2
|
4
1
两个很好的例子是解析器组合器和参与者的内置dsl。有一个名为DBC(尚未就绪)的SQL包装器,您可以在这里看到它的样子: http://scala.sygneca.com/libs/dbc |
5
1
XML in Scala 这是另一个例子。 |
6
0
|
davidzxc574 · 将字符串缩放为字符 2 年前 |
yic_l · 什么是“!”在这个函数中是什么意思? 2 年前 |
Jelly · Scala:用于理解递归未来 2 年前 |
bbgghh · 在scala中连接两个列表时如何处理不匹配的键 2 年前 |
Iheb Mar · 卡夫卡制作人/消费者粉碎每一秒的API调用 2 年前 |
B. Bal · 在Scala中重用类成员 2 年前 |