Top "Constants" questions

Constants in programming are definitions whose value is fixed throughout a program's execution.

What is the use of "static" keyword if "let" keyword used to define constants/immutables in swift?

I'm little bit confused about using static keyword in swift. As we know swift introduces let keyword to declare immutable …

swift static constants
Defining constants in python class, is self really needed?

I want to define a set of constants in a class like: class Foo(object): (NONEXISTING,VAGUE,CONFIRMED) = (0,1,2) def __init__(…

python constants visibility
Unable to free const pointers in C

How can I free a const char*? I allocated new memory using malloc, and when I'm trying to free it …

c constants free
Use if else to declare a `let` or `const` to use after the if/else?

I'm not sure why but it seems that I can't call the let or const variables if I declare them …

javascript if-statement reactjs constants let
What is the difference between "const" and "val"?

I have recently read about the const keyword, and I'm so confused! I can't find any difference between const and …

constants kotlin
C++ map access discards qualifiers (const)

The following code says that passing the map as const into the operator[] method discards qualifiers: #include <iostream> #…

c++ stl constants maps
Can't export constant in Typescript

Can someone help me please I have 2 files main.ts and hi.ts hi.ts: export const hello = "dd"; main.…

typescript import export constants
Can parameters be constant?

I'm looking for the C# equivalent of Java's final. Does it exist? Does C# have anything like the following: public …

c# constants readonly parameter-passing
Time consts in Java?

Is there a Java package with all the annoying time constants like milliseconds/seconds/minutes in a minute/hour/day/…

java date time constants