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.

Why C# doesn't implement indexed properties?

I know, I know... Eric Lippert's answer to this kind of question is usually something like "because it wasn't worth …

c# language-features indexed-properties
C# method call with parameter name and colon

I've begun to notice at times when I'm making method calls in C# that the names of the parameters for …

c# language-features method-call
What is the tilde (~) in the enum definition?

I'm always surprised that even after using C# for all this time now, I still manage to find things I …

c# enums language-features enumeration
What is a maximum number of arguments in a Python function?

It's somewhat common knowledge that Python functions can have a maximum of 256 arguments. What I'm curious to know is if …

python function arguments language-features limit
Default method return value in Java interfaces

While working with annotations I stumbled accross the following piece of code (it's the Hibernate @NotNull annotation): @Target(value = {ElementType.…

java interface annotations language-features
Why do enums have computed properties but not stored properties in Swift?

I am new to Swift and just came across this in the documentation: Computed properties are provided by classes, structures, …

swift enums language-features
Can you create private classes in C#?

This is a question for the .NET philosophers: It is my understanding that Microsoft consciously denied use of private classes …

c# language-features
How to declare a C# Record Type?

I read on a blog that C# 7 will feature record types class studentInfo(string StudentFName, string StudentMName, string StudentLName); However …

c# language-features c#-7.0
Why does HTML5 not include a way of loading local HTML into the document?

I've thinking about this a lot lately. Why does HTML5 not really let you load HTML into your document to …

html include language-features
Scoped using-directive within a struct/class declaration?

I find that my C++ header files are quite hard to read (and really tedious to type) with all the …

c++ language-features using-directives