First class data type

Published on October 18th, 2019

cs icon

Some data types in programming languages can be “first class”. But what does that really mean?

First class means that type can be:

  • The value of a variable
  • An argument to a function
  • The value returned by a function
  • Anonymous

Resource