Giter Site home page Giter Site logo

Comments (5)

mikespook avatar mikespook commented on August 15, 2024

我是根据 wikipedia 上的词条翻译的。而关键字这个词条看起来并不是很合适。虽然原文使用的是 keyword,不过我觉得还是按照保留字翻译比较好。

但是这个叫法确实值得商榷一下,我或许会征求一下更多人的意见。

from learning-go-zh-cn.

laiyonghao avatar laiyonghao commented on August 15, 2024

关键字是正在使用的保留字,而保留字更倾向于现在未使用留待将来扩展的字。

赞同,关键字是保留字的一部分。

from learning-go-zh-cn.

JessonChan avatar JessonChan commented on August 15, 2024

我的理解,保留字是指的“语言保留字”,程序员不能随意自定义使用。比如,
C语言的int就是程序员无法修改和定义的 而是系统保留使用的。

from learning-go-zh-cn.

anotheros avatar anotheros commented on August 15, 2024

java里goto是保留字,不是关键字。就这样。

from learning-go-zh-cn.

mikespook avatar mikespook commented on August 15, 2024

"A keyword is a word that is special only in certain contexts but a reserved word is a special word that cannot be used as a user-defined name." -- var wikipedia

from learning-go-zh-cn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.