Top new questions this week:
|
(This question is somewhat related to Exception handling: 'catch' without explicit 'try')
Context
I'm working on a new general-purpose programming language. Exception handling is ...
|
Context
For memory safe languages to be fast, array bounds should be checked during compilation. Some language like Java, Rust, Swift, and others eliminate array bounds checks when possible, but the ...
|
(I was not aware of this site and asked, by mistake, a similar question on cs.stackexchange as well. It is related to this question on this site.)
Context
I'm working on a new general-purpose ...
|
Greatest hits from previous weeks:
|
I'm reading Appel's book Modern Compiler Implementation in C. I just read the following statement in chapter 6, and I wonder if it is accurate. It says that on modern machines, the calling conventions ...
|
Motivation
Garbage collection is a critical component of memory management in many programming languages.
Many languages have built-in garbage collectors tightly integrated into their runtime ...
|
In, for example, Python, it is possible to subtype primitive types:
...
|
Every programming language I know (Java, C++, C#, Python, etc.) are all made in English. That is, you can't, for example, type imprimir("hola") instead of ...
|
I noticed C23 has constexpr but only for variables, not for functions. While C++ does, this would allow a function to be defined in such a way that if the function ...
|
The discussion whether using indentation for code blocks is better or worse than using braces is an old one, but I don't want to rehash that discussion here (for reference, there was a fairly recent ...
|
Use case
Some languages offer techniques to ensure certain requirements at compile time. For example, rust has the NonZeroU32 type that will ensure at compile time ...
|