GithubHelp home page GithubHelp logo

keywords's Introduction

# Keywords

A list and count of keywords in programming languages.

┌─────────────────────────────────────────────────────────────────────────────┐
│                                                                      ...... │
│                                                                      ...... │
│                                                               ...... ...... │
│                                                               ...... ...... │
│                                                        ...... ...... ...... │
│                                                        ...... ...... ...... │
│                                                        ...... ...... ...... │
│                                                        ...... ...... ...... │
│                                                        ...... ...... ...... │
│                                          ...... ...... ...... ...... ...... │
│                                   ...... ...... ...... ...... ...... ...... │
│                                   ...... ...... ...... ...... ...... ...... │
│                     ...... ...... ...... ...... ...... ...... ...... ...... │
│       ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... │
│...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... │
│...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... │
│..25.. ..26.. ..32.. ..33.. ..36.. ..51.. ..52.. ..54.. ..89.. .100.. .109.. │
│Go     Erlang C      Python Ruby   Java   Rust   Dart   Swift  C#     C++    │
└─────────────────────────────────────────────────────────────────────────────┘

## Why does it matter?

The number of keywords in a programming language _can_ be an indication to it's simplicity/complexity, and that can impact the simplicity/complexity of the solutions that developers produce using it. Complex solutions can be more expensive to maintain and difficult to hire for. However, this is dependent on many factors and keyword count is only one; language idioms also play a massive part.

## Contribute

Don't see a language here? Please open a pull request adding it!

## Keyword List

### Golang (25 keywords)

break        default      func         interface    select
case         defer        go           map          struct
chan         else         goto         package      switch
const        fallthrough  if           range        type
continue     for          import       return       var

### Erlang (26 keywords)

after        and          andalso      begin        bnot
bor          bsl          bsr          bxor         case
catch        cond         div          end          fun
if           let          not          of           or
orelse       receive      rem          try          when
xor

### C (32 keywords)

auto         double       int          struct       break
else         long         switch       case         enum
register     typedef      char         extern       return
union        const        float        short        unsigned
continue     for          signed       void         default
goto         sizeof       volatile     do           if
static       while

### Python (33 keywords)

False        class        finally      is           return
None         continue     for          lambda       try
True         def          from         nonlocal     while
and          del          global       not          with
as           elif         if           or           yield
assert       else         import       pass         break
except       in           raise

### Ruby (36 keywords)

alias        and          begin        break        case
class        def          defined?     do           else
elsif        end          ensure       false        for
if           in           module       next         nil
not          or           redo         rescue       retry
return       self         super        then         true
undef        unless       until        when         while
yield

### Java (51 keywords)

abstract     continue     for          new          switch
assert       default      goto         package      synchronized
boolean      do           if           private      this
break        double       implements   protected    throw
byte         else         import       public       throws
case         enum         instanceof   return       transient
catch        extends      int          short        try
char         final        interface    static       void
class        finally      long         strictfp     volatile
const        float        native       super        while
_ (underscore)

### Rust (52 keywords)

abstract     alignof      as           become       box
break        const        continue     crate        do
else         enum         extern       false        final
fn           for          if           impl         in
let          loop         macro        match        mod
move         mut          offsetof     override     priv
proc         pub          pure         ref          return
Self         self         sizeof       static       struct
super        trait        true         type         typeof
unsafe       unsized      use          virtual      where
while        yield

### Dart (54 keywords)

abstract     as           assert       async        await
break        case         catch        class        const
continue     covariant    default      deferred     do
dynamic      else         enum         export       extends
external     factory      false        final        finally
for          get          if           implements   import
in           is           library      new          null
operator     part         rethrow      return       set
static       super        switch       sync         this
throw        true         try          typedef      var
void         while        with         yield

### Swift (89 keywords)

associatedtype class          deinit         enum
extension      func           import         init
inout          internal       let            operator
private        protocol       public         static
struct         subscript      typealias      var
break          case           continue       default
defer          do             else           fallthrough
for            guard          if             in
repeat         return         switch         where
while          as             catch          dynamicType
false          is             nil            rethrows
super          self           Self           throw
throws         true           try            #column
#file          #function      #line          #available
#column        #else#elseif   #endif         #file
#function      #if            #line          #selector
associativity  convenience    dynamic        didSet
final          get            infix          indirect
lazy           left           mutating       none
nonmutating    optional       override       postfix
precedence     prefix         Protocol       required
right          set            Type           unowned
weak           willSet

### C# (100 keywords)

abstract     add          alias        as           ascending
async        await        base         bool         break
byte         case         catch        char         checked
class        const        continue     decimal      default
delegate     descending   do           double       dynamic
else         enum         event        explicit     extern
false        finally      fixed        float        for
foreach      from         get          global       goto
group        if           implicit     in           int
interface    internal     into         is           join
let          lock         long         namespace    new
null         object       operator     orderby      out
override     params       partial      private      protected
public       readonly     ref          remove       return
sbyte        sealed       select       set          short
sizeof       stackalloc   static       string       struct
switch       this         throw        true         try
typeof       uint         ulong        unchecked    unsafe
ushort       using        value        var          virtual
void         volatile     where        while        yield

### C++ (109 keywords)

#define                  #defined                 #elif
#else                    #endif                   #error
#if                      #ifdef                   #ifndef
#include                 #line                    #pragma
#undef                   alignas                  alignof
and                      and_eq                   asm
atomic_cancel            atomic_commit            atomic_noexcept
auto                     bitand                   bitor
bool                     break                    case
catch                    char                     char16_t
char32_t                 class                    compl
concept                  const                    constexpr
const_cast               continue                 decltype
default                  delete                   do
double                   dynamic_cast             else
enum                     explicit                 export
extern                   false                    final
float                    for                      friend
goto                     if                       inline
int                      import                   long
module                   mutable                  namespace
new                      noexcept                 not
not_eq                   nullptr                  operator
or                       or_eq                    override
private                  protected                public
register                 reinterpret_cast         requires
return                   short                    signed
sizeof                   static                   static_assert
static_cast              struct                   switch
synchronized             template                 this
thread_local             throw                    transaction_safe
transaction_safe_dynamic true                     try
typedef                  typeid                   typename
union                    unsigned                 using
virtual                  void                     volatile
wchar_t                  while                    xor
xor_eq

keywords's People

Contributors

adsouza avatar leighmcculloch avatar

Watchers

 avatar

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.