News for hackers. Stuff that matters.
Re:Show HN: LiteScript by lucio on Sunday March 09, 2014 @11:32AM (#7368668)
1. Type guessing:

- if you have a "class Token" and later do "var token", the type is guessed by name affinity.

- if you do:

    token = .getToken()
    other = token
the type of "other" is guessed from assignment (:Token)

2. Type annotations: you directly state type

          var other:Token
          var read: Token array
The compiler does a "pseudo-execution" of the AST, guessing types and validating property access.

There are no comments on this comment yet.