请输入您要查询的单词:

 

单词 syntactic sugar
释义

syntactic sugar

English

Etymology

Attributed to British computer scientist Peter Landin.

Noun

syntactic sugar (uncountable)

  1. (computing) Additions to the syntax of a computer language that make code easier for humans to read or write, but that do not change the functionality or expressiveness of the language.
    In fact, this is how lists are actually built, by consing all elements to the empty list, []. The commas-and-brackets notation is just syntactic sugar, a more pleasant way to write code. So [1, 2, 3, 4, 5] is exactly equivalent to 1:2:3:4:5:[]. WB

Antonyms

  • syntactic salt

Derived terms

  • desugar
  • desugared

Translations

See also

  • pretty-print

Further reading

  • syntactic sugar on Wikipedia.Wikipedia
随便看

 

国际大辞典收录了7408809条英语、德语、日语等多语种在线翻译词条,基本涵盖了全部常用单词及词组的翻译及用法,是外语学习的有利工具。

 

Copyright © 2004-2023 idict.net All Rights Reserved
京ICP备2021023879号 更新时间:2024/10/6 21:11:03