歡迎您光臨本站 註冊首頁

Tea 語言 1.0 Beta 版發布

←手機掃碼閱讀     admin @ 2020-01-22 , reply:0

2020年1月22日,Tea語言發布了1.0首個Beta版本,該版本完善和優化了Tea語言1.0的眾多特性。

Tea語言是一種新的計算機編程語言,採用強規範設計(規範即語法),擁有簡約的強類型系統和單元模塊體系,支持類型推斷,支持面向對象和函數式編程,語法精鍊簡潔。其目標是成為一個友好的,支持多端開發的編程語言,並盡量支持常用編程語言生態,讓開發者可以繼續使用已有工作成果。目前通過編譯生成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


[admin ]

來源:OsChina
連結:https://www.oschina.net/news/112943/tea-1-0-beta-released
Tea 語言 1.0 Beta 版發布已經有124次圍觀

http://coctec.com/news/all/show-post-223542.html