sacalon / sacalon

Sacalon is a general purpose and open source programming language designed to build optimal, maintainable, reliable and efficient software.

Home Page:https://sacalon.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generics

bistcuite opened this issue · comments

commented

Generics syntax:

[T:any]
function add(a:T,b:T):T{
      return a + b
}
var sum = add(2,3)
commented

This issue will reopen in future