algebrick:基于代数类型和模式匹配的类固醇的类型化结构

时间:2021-05-23 23:21:39
【文件属性】:
文件名称:algebrick:基于代数类型和模式匹配的类固醇的类型化结构
文件大小:61KB
文件格式:ZIP
更新时间:2021-05-23 23:21:39
Ruby 阿尔格布里克 基于代数类型和模式匹配的类固醇上的类型化结构与标准Ruby功能无缝集成。 文档: : 资料来源: : 博客: : 到底有什么好处呢? 定义明确的数据结构。 Actor消息在看到了。 描述基于消息的跨进程通信中的消息协议。 代数类型可以与JSON反序列化一起很好地工作。 和更多... 快速示例 让我们定义一棵树 Tree = Algebrick . type do | tree | variants Empty = atom , Leaf = type { fields Integer } , Node = type { fields tree , tree } end 现在定义了类型Tree(Empty | Leaf | Node) , Empty , Leaf(Integer)和Node(Tre
【文件预览】:
algebrick-master
----README_FULL.md(3KB)
----LICENSE.txt(10KB)
----VERSION(6B)
----lib()
--------algebrick()
--------algebrick.rb(2KB)
----Gemfile(38B)
----doc()
--------extending_behavior.in.rb(1KB)
--------values.out.rb(2KB)
--------parametrized.out.rb(2KB)
--------quick_example.in.rb(835B)
--------tree1.in.rb(244B)
--------values.in.rb(2KB)
--------extending_behavior.out.rb(2KB)
--------json.in.rb(1KB)
--------format.rb(41B)
--------actor.rb(422B)
--------tree1.out.rb(588B)
--------type_def.out.rb(1KB)
--------pattern_matching.out.rb(6KB)
--------null.out.rb(1KB)
--------quick_example.out.rb(1KB)
--------type_def.in.rb(535B)
--------init.rb(20B)
--------null.in.rb(769B)
--------data.in.rb(2KB)
--------parametrized.in.rb(939B)
--------pattern_matching.in.rb(4KB)
--------json.out.rb(2KB)
--------data.out.rb(3KB)
----Rakefile(88B)
----algebrick.gemspec(1KB)
----.travis.yml(128B)
----test()
--------algebrick_test.rb(22KB)
----update_doc.rb(735B)
----README.md(2KB)
----.yardopts(233B)
----.gitignore(73B)

网友评论