Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
First-class citizen
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Concept in programming language design}} {{for|the usage in society|Second-class citizen}} In a given [[Programming language#Design and implementation|programming language design]], a '''first-class citizen'''{{efn|Also known as '''first-class type''', '''first-class object''', '''first-class entity''', or '''first-class value'''.}} is an entity which supports all the operations generally available to other entities. These operations typically include being passed as an [[Parameter (computer programming)|argument]], returned from a [[Function (computer programming)|function]], and assigned to a [[Variable (computer science)|variable]].<ref>{{cite book |title= Programming Language Pragmatics |last= Scott |first= Michael |year= 2006 |publisher= Morgan Kaufmann Publishers |location= San Francisco, CA |page= [https://archive.org/details/programminglangu00scot_912/page/n172 140] |isbn= 9780126339512 |url=https://archive.org/details/programminglangu00scot_912|url-access= limited }}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)