开发者

Reserved keywords count by programming language?

Is there a ranking or table of the number of reserved keywords in various programming languages?

I开发者_运维知识库 do not need to know the keywords per se but how many keywords languages like C, C++, C#, Perl, Python, PHP, Smalltalk, Lisp, and Ruby have.


Lists of keywords in ...

  • ANSI COBOL 85: 357
  • SystemVerilog: 250 + 73 reserved system functions = 323
  • VHDL 2008: 115 reserved words
  • C#: 79 + 23 contextual = 102
  • F#: 64 + 8 from ocaml + 26 future = 98
  • C++: 82
  • Dart: 54
  • Java: 50 (48 without unused keywords const and goto)
  • PHP: 49
  • Ruby 42
  • JavaScript: 38 reserved words + 8 words reserved in strict mode only
  • Python 3.7: 35
  • C: 32
  • Python 2.7: 31
  • Go: 25
  • Elm : 25
  • Lua: 22
  • CoffeeScript: 19, not necessarily "reserved", plus ~50 to avoid from JS
  • Smalltalk: 6 pseudo-variables
  • iota: 2
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜