理解syntactical sugar
发布日期:2021-05-07 14:24:54 浏览次数:24 分类:精选文章

本文共 668 字,大约阅读时间需要 2 分钟。

  • Overview

    If a language provides convenient, compact shortcuts, then those shortcuts may be described as syntactical sugar, a term coined in 1964.

    The built-in dictionary data structure in Python is syntactic sugar for an associative matrix/list.

  • Syntactic sugar

    Syntactic sugar is syntax within a programming language that is designed to make things easier to read or to express.

    It makes the language “sweeter” for human use: things can be expressed more clearly, more concisely, or in an alternative style that some may prefer.

    The term syntactic sugar was coined by Peter J. Landin in 1964.

  • References

  1. Stueben, M. Good Habits for Great Coding. (Apress, 2018). doi:.
上一篇:理解curse of Cambridge professor Charles Babbage
下一篇:信息论入门探索

发表评论

最新留言

能坚持,总会有不一样的收获!
[***.219.124.196]2025年04月10日 08时10分08秒