PL-SML1

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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 蛋蛋,一只我养了月余的喵仔,自带橘色眼线,总是喜欢暗中观察我,特别闹腾,十分粘人的大概会发展成胖橘的母喵。我...
    夏目虫宝阅读 3,134评论 0 0
  • 另一方面,如果我们向所构建的Measurement_Noise DV(具有单位增益)注入一个值为1的噪声,我们认为...
    橡果阅读 3,342评论 0 0
  • 每一位需要拍摄婚纱照的顾客都有不同的憧憬和不同的审美,就像人的指纹一样,您的和我的不会完全一样。北遇所坚持的高级定...
    时间遗失童年阅读 2,962评论 0 0
  • 最近项目中碰到的问题,在发送网络请求时,由于用户输入了emoji表情,服务端返回错误提示信息。为了解决服务器不能验...
    sun_dev阅读 4,235评论 0 2
  • Vvv
    楠盆友阅读 3,199评论 0 0

友情链接更多精彩内容