ballerina 学习十四 values && types

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

猜你喜欢

转载自www.cnblogs.com/rongfengliang/p/9061929.html
今日推荐