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.

What does the 'static' keyword do in a class?

To be specific, I was trying this code: package hello; public class Hello { Clock clock = new Clock(); public static void …

java static oop language-features restriction
How to loop through all enum values in C#?

This question already has an answer here: How do I enumerate an enum in C#? 26 answers public enum Foos { A, …

c# .net enums language-features
JavaScript hashmap equivalent

As made clear in update 3 on this answer, this notation: var hash = {}; hash[X] does not actually hash the object …

javascript data-structures language-features hashmap
How to Correctly Use Lists in R?

Brief background: Many (most?) contemporary programming languages in widespread use have at least a handful of ADTs [abstract data types] …

r list data-structures language-features abstract-data-type
Why Doesn't C# Allow Static Methods to Implement an Interface?

Why was C# designed this way? As I understand it, an interface only describes behaviour, and serves the purpose of …

c# oop language-features
DateTime.Now vs. DateTime.UtcNow

I've been wondering what exactly are the principles of how the two properties work. I know the second one is …

.net language-features date
Is there more to an interface than having the correct methods

So lets say I have this interface: public interface IBox { public void setSize(int size); public int getSize(); public int …

java oop language-features interface
When do I need to use Begin / End Blocks and the Go keyword in SQL Server?

Can someone tell me when and where I need to use begin and end blocks in SQL Server? Also, what …

sql-server tsql language-features
What's the difference between interface and @interface in java?

I haven't touched Java since using JBuilder in the late 90's while at University, so I'm a little out of …

java interface annotations language-features
What is the python "with" statement designed for?

I came across the Python with statement for the first time today. I've been using Python lightly for several months …

python language-features with-statement