Skip to main content

Questions tagged [language-design]

For questions relating to the design of programming languages, including language semantics, syntax, type systems, data structures, or other design elements.

16 votes
1 answer
2k views

In C++, std::strong_ordering has four valid values, yet instead of being an enumeration, it is a class. This seems weird to me, for it prevents ...
ggZQX6YPvD's user avatar
1 vote
2 answers
334 views

want to design a simple programming language for educational purposes. My goal is to understand the fundamentals of how a language works — defining syntax, grammar, and how code gets executed (...
Anna Cláudia Speck de Souza's user avatar
2 votes
1 answer
163 views

I'm making an "assembly language" called X that compiles from X to an esoteric language Y, but I encountered some problems with the data types for the variables. I currently have three data ...
Fmbalbuena's user avatar
6 votes
5 answers
3k views

One beneficial feature of Rust is that loop, the unconditional looping statement, allows so-called "returning break", ...
Dannyu NDos's user avatar
  • 1,485
0 votes
0 answers
111 views

In a "managed memory" language that I'm designing, I'm constructing grammar for the description of arbitrary object type that can simultaneously be used for initialization of objects with ...
DannyNiu's user avatar
  • 467
4 votes
0 answers
203 views

Local allocators can be beneficial in situations where tracking memory usage or releasing all allocated memory without running destructors at the end of an activity is possible. From that perspective, ...
feldentm's user avatar
  • 2,498
7 votes
4 answers
772 views

For those not in the know, a golfing language is a language designed such that its programs can be written with as few bytes as possible. With that in mind, what metric, what objective, do language ...
Rhaixer's user avatar
  • 353
0 votes
2 answers
1k views

In most C-like languages, a call such as printf("%d", x) is followed by two parentheses; and I see that a statement such as ...
user avatar
4 votes
4 answers
490 views

I am currently thinking about the design and implementation of a programming language. Initially, I was leaning towards a strongly and statically typed system, as found in languages such as OCaml or ...
Foxy's user avatar
  • 254
4 votes
2 answers
448 views

I'm learning about how modern compilers like Roslyn handle symbol tables and type information. From what I understand, Roslyn uses immutable data structures to represent symbols, which helps ensure ...
Rui Gonçalves's user avatar
1 vote
1 answer
395 views

How do you mathematically prove that programming languages and their embedded domain-specific languages are memory safe, like Rust? Can you provide a sketch for such mathematical proofs? I am aware ...
Giovanni's user avatar
21 votes
5 answers
4k views

I've learned multiple languages during my developer life. When I'm switching from one to another, I'm falling in plenty of "small things to remember". Some have a reason I'm knowing, but ...
Marc Le Bihan's user avatar
15 votes
10 answers
3k views

In a spreadsheet, like Google Sheets or Excel, if you make a formula which involves values from other cells, and update the value on those cells, the value on the cell with the formula will change, ...
Starship's user avatar
  • 1,518
5 votes
1 answer
1k views

I have a question about a C# language design. Let's have a following code: ...
TN.'s user avatar
  • 159
0 votes
1 answer
532 views

Out of curiosity I checked how Google AI would respond to a similar question. The bot seemed clever enough to understand the question, but responded that functions in this case would have no return ...
Osr Workshops's user avatar

15 30 50 per page
1
2 3 4 5
10