Languages Features Creators Calendar CSV Resources Blog About Donate Add Language
GitHub icon


< >
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 C3:
const FOO = 123; const void* BAR = null;
Example from Jule:
const PI = 3.14159265359

Languages with Constants include Java, JavaScript, C, C++, PHP, C#, Ruby, Go, Rust, Kotlin, TypeScript, Objective-C, Julia, Dart, F#, Groovy, Chapel, SystemVerilog, C3, Jule, Angelscript, Pizza, Apex, Eclipse Command Language, C2, nimrod, Deesel, Tick C, cooC, Real-Time Concurrent C, Static Typescript

Languages without Constants include progsbase

Read more about Constants on the web: 1.

HTML of this page generated by Features.ts

hasConditionals.html 路 hasConstants.html 路 hasConstructors.html

View source

PLDB - Build the next great programming language Search v2023 Day 157 Docs Acknowledgements Traffic Today Traffic Trends Mirrors GitHub