PL-SML1

作者: 安之 | 来源:发表于2014-06-14 12:06 被阅读0次

Syntax and Semantic:

  • Syntax: how to write something
  • Semantic: the meaning of what have been written
  • Static : compile
    Dynamic: run-time
  • Type-checking : before programs run
    Evaluation: as programs run
  • Binding: immutation
    Assignment: mutation

Function :

  • first-class: a function is a value
  • environment: when the function is defined

List and Tuple:

  • Pair: two values that construct a pair
  • Tuple: fixed number of values which have different types
  • List: any number of values which have the same type

Scope:

where a binding is in the environment

Let-expression:

local bindings

Option:

  • NONE
  • SOME e
  • valueOf

Boolean operations:

  • andalso
  • orelse
  • not

相关文章

  • PL-SML1

    Syntax and Semantic: Syntax: how to write something Seman...

网友评论

      本文标题:PL-SML1

      本文链接:https://www.haomeiwen.com/subject/ozxjtttx.html