首页    期刊浏览 2024年07月07日 星期日
登录注册

文章基本信息

  • 标题:Lenses for Web Data
  • 本地全文:下载
  • 作者:Raghu Rajkumar ; Nate Foster ; Sam Lindley
  • 期刊名称:Electronic Communications of the EASST
  • 电子版ISSN:1863-2122
  • 出版年度:2014
  • 卷号:57
  • 语种:English
  • 出版社:European Association of Software Science and Technology (EASST)
  • 摘要:Putting data on the web typically involves implementing two transformations: one to convert the data into HTML, and another to parse modifications out of interactions with clients. Unfortunately, in current systems, these transformations are usually implemented using two separate functions—an approach that replicates functionality across multiple pieces of code, and makes programs difficult to write, reason about, and maintain. This paper presents a different approach: an abstraction based on formlets that makes it easy to bridge the gap between data stored on a server and values embedded in HTML forms. We introduce formlenses , which combine the advantages of formlets with those of lenses to provide compositional, bidirectional form-based views of Web data. We show that formlenses can be viewed as monoidal functors over lenses, analogously to formlets, which are applicative functors. Finally, we investigate the connection between linearity and bidirectional transformations and describe a translation from a linear pattern syntax into formlens combinators.
国家哲学社会科学文献中心版权所有