Questions tagged [language-features]

Questions about distinctive aspects of particular computer languages, particularly in the way they are written or in the expressive capabilities provided to the programmer.

Computer languages offer a very wide range of different lexical, syntactical and semantic features, and vary widely in the style and approach by which they allow a programmer to express a particular requirement.

In the widest sense, the concept embraces the level of the language (high or low), its portability (working on different machines), its standards compliance, whether it is imperative or functional, whether general purpose or domain specific.

In the more usual sense it deals with coding features such as how comments and tokens are written, available types, strongly typed or not, object model (if any), how to express looping and branching, and how it supports functions and modules/components.

150 questions
74
votes
6 answers

When is a feature considered a "First class citizen" in a programming language/platform?

I have seen many times statements like- "Please make this feature a first class citizen in so and so language/platform". For example, it is said about enums in C#/.net. So, when is a feature considered a "First class citizen" in a programming…
Gulshan
  • 9,442
3
votes
3 answers

What actions should I not rely on the packaged functionality of my language for?

While talking with one of my coworkers, he was talking about the issues the language we used had with encryption/decryption and said that a developer should always salt their own hashes. Another example I can think of is the mysql_real_escape_string…
1
vote
3 answers

What drawbacks are there to condition-based scope?

In the pseudo code below, the variable key must be declared and initialized outside of the context which it is used/relevant because there are two disparate if-blocks with the exact same condition. I was thinking it might be cool if a language could…
Aaron Anodide
  • 5,553
  • 6
  • 30
  • 37