Crystal 0.28.0 发布,类 Ruby 语法的编译型编程语言

栏目: 软件资讯 · 发布时间: 6年前

内容简介:Crystal 0.28.0 已发布。Crystal 是一门基于 LLVM 的可编译的静态类型语言,它整个设计尽可能的接近 Ruby 的体验,你会看到语法、各种标准库的接口都几乎和 Ruby 一样(但兼容 Ruby 不是它的目标)。 开发团队表示...

Crystal 0.28.0 已发布。Crystal 是一门基于 LLVM 的可编译的静态类型语言,它整个设计尽可能的接近 Ruby 的体验,你会看到语法、各种标准库的接口都几乎和 Ruby 一样(但兼容 Ruby 不是它的目标)。

开发团队表示他们热爱 Ruby 编写代码的效率,又倾心于 C 语言的性能。所以他们打造的 Crystal 语言给开发者提供了 Ruby 一样的语法体验,而且还拥有 C 一样的性能(官方给出的某些测试数据表明)。

这是一次重大版本更新,包括新的语言结构、改进现有功能,std-lib 的许多有趣补充,以及期待已久的多线程和 Windows 功能的重要变化。

Language changes

  • (breaking-change) Enum declaration members can no longer be separated by a space, only by a newline, ; or ,, the latter being deprecated and reformatted to a newline. (#7607#7618)
  • Add begin-less and end-less ranges: array[5..]. (#7179)
  • Add offsetof(Type, @ivar) expression. (#7589)

Macros

  • Add Type#annotations to list all annotations and not just the last of each kind. (#7326)
  • Add ArrayLiteral#sort_by macro method. (#3947)

其他大量更新请查阅发行说明

下载地址:

Source code(zip)

Source code(tar.gz)


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Tango with Django

Tango with Django

David Maxwell、Leif Azzopardi / Leanpub / 2016-11-12 / USD 19.00

Tango with Django is a beginner's guide to web development using the Python programming language and the popular Django web framework. The book is written in a clear and friendly style teaching you th......一起来看看 《Tango with Django》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

MD5 加密
MD5 加密

MD5 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具