PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Constants

Constants

Constants are a feature.

Marking a type or identifier as immutable.


Languages with Constants include Java, JavaScript, C, C++, PHP, C#, Ruby, Go, Rust, Kotlin, Objective-C, Julia, Dart, F#, Groovy, Chapel, SystemVerilog, Angelscript, Jule, Apex, Eclipse Command Language, nimrod

Example from JavaScript:
const one = 1
Example from C++:
int const one = 1;
Example from Ruby:
# Constants in Ruby being with a capital letter. Will throw a warning or error, depending on runtime settings. Name = "John" # Not a constant name = "John"
Example from Jule:
const PI = 3.14159265359
conditionals-feature.html 路 constants-feature.html 路 constructor-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 33 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com