首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > Scala的会话类型

Scala的会话类型

  • 资源大小:3.47 MB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: scala 类型 会话

资 源 简 介

Welcome! session-scala is an extension of the Scala programming language, containing: * A small library for parallel/distributed programming, with syntax similar to Scala Actors, currently supporting shared-memory and AMQP communication. * A compiler plugin that checks processes against an associated multiparty session type, written using the Scribble specification language. Multiparty session types are global descriptions of a communication protocol between several participants. Here"s a simple session-scala example, with a two-participant session, a Buyer and a Seller: ``` import uk.ac.ic.doc.sessionscala.Address._ import actors.Actor._ object BuyerSellerExample { def main(args: Array[String]) { val buyer = newLocalAddress(
VIP VIP
0.174819s