Questions tagged [language-design]

A tag for questions related to the design of any aspect of programming languages.

1363 questions
-1
votes
4 answers

If you are forced to simplify C# looping keywords, choose only one you want to preserve

If you are forced to simplify C# keywords that can be used for looping, choose only one you want to preserve. for do-while while goto-label-if foreach Is there any performance consideration regarding your decision? Actually I don't know the…
-1
votes
4 answers

What are the highest level languages that can be compiled?

What are the highest level languages that can be compiled to executables? When I say compiled to an executable I am not referring to bytecode, but native assembly code like in the C, C++ sense. EDIT: One issue that I'm having is that clients have…
-1
votes
1 answer

Why ValueType is an abstract class

System.Object--> System.ValueType--> System.Enum, System.Int16, System.Int32, System.Int64... The ValueType is an abstract class ValueType, but why Int16,Int32,Int64 were made struct ? Also another question is that why…
ram sam
  • 3
  • 1
-1
votes
3 answers

Dynamic binding in interpreted languages vs compiled languages

So currently reading about binding... Based on the examples I can think of along with examples found on the web, it appears that dynamic binding tends to occur predominantly in interpreted languages as opposed to occurring in compiled languages.…
-1
votes
1 answer

Why don't any and all take multiple parameters like min and max?

The functions min and max are very flexible; they can take any number of parameters, or a single parameter that is an iterable. any and all are similar in taking an iterable of any size, but they do not take more than one parameter. Is there a…
Mark Ransom
  • 299,747
  • 42
  • 398
  • 622
-1
votes
1 answer

If you are a language designer, how would you make ignoring parameters more succint for lambdas?

Based on this, how would you make ignoring parameters more succint? var m = menuStrip.Items.Add("Hello", null, delegate { MessageBox.Show("Como Esta Mundo"); }); I'm thinking along the lines of: var m = menuStrip.Items.Add("Hello", null, ==>…
Hao
  • 8,047
  • 18
  • 63
  • 92
-2
votes
1 answer

Type id to the left or right of var id?

What is the reasoning behind the two common variable declaration syntax that many popular languages use, such as: int foo = 0; and foo:int = 0; One problem I have with the second option, is that it almost looks like you are doing, "int =…
Austin Henley
  • 4,625
  • 13
  • 45
  • 80
-2
votes
1 answer

Why is the null conditional operator not allowed for property assignment?

I just noticed that property assignment is not allowed in combination with the null conditional operator. With methods is it not a problem at all though. I always thought that properties are just syntactic sugar for setter…
Dirk Boer
  • 8,522
  • 13
  • 63
  • 111
-2
votes
1 answer

Implementing a dynamic typed language with LLVM IR

I'm trying to build a JIT compiler for a dynamic language using LLVM C API but I'm stuck at implementing dynamic types, for example in function definition, LLVM needs types for each argument but the type is unknown until runtime based on what the…
Free TNT
  • 61
  • 1
  • 3
  • 9
-2
votes
1 answer

Why were Logical Operators created?

Almost all programming languages are having the concept of logical operator I am having a query why logical operators were created. I googled and found its created for condition based operation, but that's a kind of usage i think. I am interested…
-2
votes
1 answer

What Functions Are Required For a Coding Language

I am currently designing and writing a custom coding language in Python 2.7 and as I am implementing more and more functions, I keep realising that I have more functions to implement. I am currently wondering two things. The first is what is the…
-2
votes
1 answer

Why are C I/O functions inconsistent among themselves?

Consistency is fundamental property in a code base, let alone in a programming language that eventually turned out to be the most used in the world. There are two families of I/O functions in C: formatted and unformatted. These are: int fprintf(FILE…
edmz
  • 8,220
  • 2
  • 26
  • 45
-3
votes
8 answers

Would it be useful to change java to support both static and dynamic types?

What if a Java allow both static and dynamic types. That might allow the best of both worlds. i.e.: String str = "Hello"; var temp = str; temp = 10; temp = temp * 5; Would that be possible? Would that be beneficial? Do any languages currently…
James A. N. Stauffer
  • 2,649
  • 3
  • 22
  • 32
-3
votes
0 answers

Developing a new programming language

I have an idea for a programming language but so far I don't understand how it's done. I've been through a series "you would use Java or C++" and then there is assembly something and all and then I'm told I need to write a lexer or something but I…
wizard
  • 1
  • 2
-3
votes
1 answer

Is the keyword END a noun or a verb?

Quite a few programming languages use the keyword END to mark the end of a structured statement or the end of a procedure declaration etc. Is this word to be read as a noun or as a verb (in imperative)? In some human languages other than English the…
August Karlstrom
  • 10,773
  • 7
  • 38
  • 60
1 2 3
90
91