码迷,mamicode.com
首页 > 其他好文 > 详细

ballerina 学习十四 values && types

时间:2018-05-19 23:26:45      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:linq   其他   模版   str   example   info   html   learn   htm   

ballerina 包含的数据类型有string int map array record boolean ojbect function table tuple any

简单说明

数据类型和其他语言相比没有设么特殊的,因为是借鉴了好多中语言其中的table 还是不错(C# datatable)
直接json select (linq 查询)optional 类型(可选) 字符串模版也不错(省去拼接字符串了),其中是any
类型所有类型的root 类型(类型C# 的object)

一张数据类型图

技术分享图片

参考资料

https://ballerina.io/learn/by-example/values.html
https://ballerina.io/learn/by-example/string-template.html
https://ballerina.io/learn/by-example/table.html
https://ballerina.io/learn/by-example/table-queries.html
https://ballerina.io/learn/by-example/any-type.html

ballerina 学习十四 values && types

标签:linq   其他   模版   str   example   info   html   learn   htm   

原文地址:https://www.cnblogs.com/rongfengliang/p/9061929.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!