Top 1,000 Features Creators Events Podcasts Extensions Interviews Blog Explorer CSV

Constants

< >
Example from 1 languages: JavaScript
const one = 1
Example from 1 languages: 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 1 languages: Lua
pi <const> = 3.14159
Example from 1 languages: C3
const FOO = 123; const void* BAR = null;
Example from 1 languages: Jule
const PI = 3.14159265359
Example from 1 languages: Cwerg
global N uint = 1000 * 1000 * 1000
Example from 1 languages: Speedie
constants Opened = 1 Closed = 2
Example from 1 languages: Aardvark
`static` keyword
*

Languages with Constants include JavaScript, C, Java, Ruby, PHP, Go, C#, Rust, Lua, Kotlin, Objective-C, Julia, Dart, Groovy, F#, Chapel, C3, SystemVerilog, C2, Veryl, Angelscript, Apex, Jule, Cwerg, Eclipse Command Language, Speedie, Aardvark, nimrod

*

Languages without Constants include progsbase

*

View all concepts with or missing a hasConstants measurement

*

Read more about Constants on the web: 1.

View source

- Build the next great programming language About Resources Acknowledgements Part of the World Wide Scroll