Top "Language-features" questions

A language feature is a distinct aspect of a programming language, such as binding rules, lexical design, or facets of the type system.

Reading a line from standard input in Python

What (if any) are the differences between the following two methods of reading a line from standard input: raw_input() …

python input language-features
Python: How to pass more than one argument to the property getter?

Consider the following example: class A: @property def x(self): return 5 So, of course calling the a = A(); a.x …

python properties language-features
How to hide (remove) a base class's methods in C#?

The essence of the problem is, given a class hierarchy like this: class A { protected void MethodToExpose() {} protected void MethodToHide(…

c# inheritance language-features inheritance-prevention
Hidden features of HTML

HTML being the most widely used language (at least as a markup language) has not gotten its due credit. Considering …

html xhtml language-features hidden-features
What are C macros useful for?

I have written a little bit of C, and I can read it well enough to get a general idea …

c macros c-preprocessor language-design language-features
Samples of Scala and Java code where Scala code looks simpler/has fewer lines?

I need some code samples (and I also really curious about them) of Scala and Java code which show that …

java scala comparison language-features
Will a future version of .NET support tuples in C#?

.Net 3.5 doesn't support tuples. Too bad, But not sure whether the future version of .net will support tuples or not?

c# .net tuples language-features
What's so great about Scala?

What makes Scala such a wonderful language, other than the type system? Almost everything I read about the language brings …

programming-languages scala language-features
Why is there a `null` value in JavaScript?

In JavaScript, there are two values which basically say 'I don't exist' - undefined and null. A property to which …

javascript null language-features undefined