Tea语言迎来1.0第一个Beta版本

2020-02-03 18:25:49来源:互联网作者:down

      据了解,1月22日,Tea语言迎来1.0第一个Beta版本,此版本完善以及优化Tea语言1.0的众多特性。

      Tea语言是一种新的计算机编程语言,采用强规范设计(规范即语法),拥有简约的强类型系统和单元模块体系,支持类型推断,支持面向对象和函数式编程,语法精炼简洁。

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

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

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

Tea语言迎来1.0第一个Beta版本

      版本特性:

      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