Auto Page

auto



----

* List 20 programming languages support the Reserved Word const. Answer in MediaWiki syntax with the URL of the official documentation for each language reference.

Below is a list of 20 programming languages that support the reserved word `const`, formatted in MediaWiki syntax, along with the URL to the official documentation for each language's reference on this topic. This reserved word is used to declare variables whose values cannot be changed once set.

```mediawiki
# JavaScript - Official documentation: [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const MDN Web Docs]
# TypeScript - Official documentation: [https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#the-const-assertions TypeScript Handbook]
# C++ - Official documentation: [https://en.cppreference.com/w/cpp/language/const cppreference.com]
# Rust - Official documentation: [https://doc.rust-lang.org/reference/items/constant-items.html The Rust Reference]
# Go - Official documentation: [https://golang.org/ref/spec#Constant_declarations The Go Programming Language Specification]
# Swift - Official documentation: [https://docs.swift.org/swift-book/LanguageGuide/TheBasics.html#ID310 Swift Documentation]
# Kotlin - Official documentation: [https://kotlinlang.org/docs/properties.html#compile-time-constants Kotlin Documentation]
# Dart - Official documentation: [https://dart.dev/guides/language/language-tour#final-and-const Dart Language Tour]
# PHP - Official documentation: [https://www.php.net/manual/en/language.constants.php PHP Manual]
# C# - Official documentation: [https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/constants Microsoft C# Documentation]
# Java - Official documentation: [https://docs.oracle.com/javase/specs/jls/se8/html/jls-4.html#jls-4.12.4 Oracle Java Language Specification]
# Objective-C - Official documentation: [https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html Apple Developer Documentation]
# Scala - Official documentation: [https://docs.scala-lang.org/tour/variances.html Scala Documentation] (Scala uses `val` for immutable values)
# Ruby - Official documentation: [https://docs.ruby-lang.org/en/2.6.0/syntax/assignment_rdoc.html#label-Constants Ruby Documentation] (Constants are uppercase variables)
# Haskell - Official documentation: [https://www.haskell.org/tutorial/values.html Haskell Tutorial] (All variables in Haskell are immutable)
# Perl - Official documentation: [https://perldoc.perl.org/constant Perl Documentation]
# Lua - Official documentation: [https://www.lua.org/pil/4.1.html Lua Programming in Lua] (Uses local for constant-like behavior)
# Clojure - Official documentation: [https://clojure.org/reference/data_structures#Vars Clojure Documentation] (Immutability is a core concept)
# Erlang - Official documentation: [https://erlang.org/doc/reference_manual/expressions.html Erlang Reference Manual] (Variables in Erlang once bound cannot be rebound)
# Elm - Official documentation: [https://elm-lang.org/docs/syntax#variables Elm Documentation] (Immutability is a core principle)
```

Note: For languages like Scala, Ruby, Haskell, Lua, Clojure, Erlang, and Elm, the concept of immutability or constants is either inherent in the language's design (e.g., through the use of `val` in Scala or the immutability of all values in Haskell and Elm) or achieved through conventions and specific functions. The use of `const` specifically might not be present, but the functionality to create constant or immutable values is supported in a manner consistent with the language's paradigms.



https://en.cppreference.com/w/cpp/keyword/auto