首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
Tea 语言 1.0 Beta 版发布
2020年1月22日 19:39 | 阅读 743 次

其目标是成为一个友好的,支持多端开发的编程语言,并尽量支持常用编程语言生态,让开发者可以继续使用已有工作成果。其1.0版本通过编译生成PHP代码运行,可调用PHP库,可以用于Web服务器端开发。预计后续版本将支持部分其它编程语言。

Tea语言非常注重语法的友好性,通过对语法进行优化设计,希望开发者可以更轻松自然的编写代码,可以更专注于创意实现。同时,也尽量保持了常用编程语言的语法风格和习惯,以降低学习成本。

Tea语言项目最早开始于19年2月份,项目初衷主要是用于提升内部开发效率和实现产品功能,最初特性较少,在完善和优化后,于19年12月初发布开源。

版本特性:

  • Strongly specification

  • Strongly typed

  • Type inference

  • Types (String, Int, UInt, Float, Bool, XView, Regex, Iterable, Callable, MetaType)

  • Return collector

  • Units

  • Classes

  • Interfaces

  • Functions

  • Lambdas

  • Constants

  • if statements

  • case statements

  • for-in statements

  • for-to/for-downto statements

  • while statements

  • try statements

  • else/elseif branches for if/case/for

  • catch/finally branches for if/case/for/while/try

  • #include expression, and #expect declaration

  • #raw strings

  • Single quoted strings, Double quoted strings

  • String interpolations

  • Declarations for PHP Classes/Functions/Constants

项目网址:

https://github.com/tealang/tea

(文/Linux伊甸园)    




评论 (0)
游客请输入验证码
最新评论
0
0
收藏