发布于 2017-05-10 00:26:19 | 86 次阅读 | 评论: 0 | 来源: 网友投递
Julia 跨平台移动应用框架
基本CSS3文件、JS库和各个平台的运行库构成。不像PhoneGap,Julia不仅仅包含调用本机代码的接口层,它还包含Model-View-Controller(MVC)支持,Delegation支持,OAuth支持,异步数据库存取接口,HTML选择符(类jQuery调用接口),HTML模版(允许嵌入JS代码)等应用开发必备的API接口。
Julia 0.5.2 和 0.6.0-rc1 发布了,本次更新包括了很多新的语言特性。
部分新的语言特性如下:
New type system capabilities (#8974, #18457)
Type parameter constraints can refer to previous parameters, e.g. type Foo{R<:Real, A<:AbstractArray{R}}
. Can also be used in method definitions.
New syntax Array{T} where T<:Integer
, indicating a union of types over all specified values of T
(represented by a UnionAll
type). This provides behavior similar to parametric methods or typealias
, but can be used anywhere a type is accepted. This syntax can also be used in method definitions, e.g. function inv(M::Matrix{T}) where T<:AbstractFloat
. Anonymous functions can have type parameters via the syntax ((x::Array{T}) where T<:Real) -> 2x
.
Implicit type parameters, e.g. Vector{<:Real}
is equivalent to Vector{T} where T<:Real
, and similarly for Vector{>:Int}
(#20414).
Much more accurate subtype and type intersection algorithms. Method sorting and identification of equivalent and ambiguous methods are improved as a result.
点击完整更新日志查看更多内容
下载地址:
0.5.2:
0.6.0-rc1: