タグ

programming-languageとsyntaxに関するnabinnoのブックマーク (3)

  • 糖衣構文 - Wikipedia

    糖衣構文(とういこうぶん、英: syntactic sugar あるいは syntax sugar)は、プログラミング言語において、読み書きのしやすさのために導入される書き方であり、複雑でわかりにくい書き方と全く同じ意味になるものを、よりシンプルでわかりやすい書き方で書くことができるもののことである。 構文上の書き換えとして定義できるものであるとも言える[* 1]。 syntactic sugar の直訳に近い構文糖(こうぶんとう)という用語も使われる。また外来語としてそのままシンタックス・シュガーとも呼ばれる。糖衣構文あるいは構文糖衣とするのは少々意訳的だがよく使われている[* 2]。 語源は「取り扱いやすい」を意味する sweet の第一義が「(砂糖のように)甘い」であることから[1][2]。 糖衣構文はプログラムの意味としては同じものを、よりわかりやすい構文で書けるものである。ジャー

  • Syntactic sugar - Wikipedia

    An example of Syntactic sugar in variable definition in go language. In syntactic sugar, the language compiler infers the type In computer science, 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 s

  • Syntax (programming languages) - Wikipedia

    This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. Find sources: "Syntax" programming languages – news · newspapers · books · scholar · JSTOR (August 2013) (Learn how and when to remove this message) Syntax highlighting and indent style are often used to aid programmer

    Syntax (programming languages) - Wikipedia
  • 1