Questions tagged [language-features]

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

618 questions
-1
votes
3 answers

c++ bool anomaly -- why is this possible?

I just stumbled across this: When postifix incrementing a bool twice, the integer value still is 1 instead of the expected 2. I'd like to know why this happens. bool test = false; // results in integer 0 test++; // results in integer 1 test++; //…
bricklore
  • 4,125
  • 1
  • 34
  • 62
-2
votes
1 answer

When applying SVM classifier to unseen new data, I encounter an error message. (R user)

Thanks for your interest and help. I built a Kernel SVM classifier with 30,000 rows of the training dataset by software R. I used around 2,000-word features to train the classifier. It worked very well. But, when I am trying to apply the classifier…
-2
votes
2 answers

Pytest bdd, the features aren't recognized anymore

I have a strange case. I can't run my pytest anymore because he doesn't found the features (who are there btw). Here is the error message and the proof that the files are there . Thx
-2
votes
2 answers

Why is `math.Sin` disallowed in a Go constant?

According to Effective Go, the function math.Sin cannot be used to define a constant because that function must happen at run-time. What is the reasoning behind this limitation? Floating-point consistency? Quirk of the Sin implementation? Something…
Phlarx
  • 134
  • 1
  • 8
-2
votes
2 answers

Comparing an object with a String using equals() method

In the below example, I am expecting equals() to return true: public class flower { String flower; public flower (String flower) { this.flower = flower; } public static void main(String[] args) { flower one = new…
Fuzz X
  • 47
  • 1
  • 2
  • 4
-2
votes
4 answers

Why in java there is no reset option for variables

Sometime when we declare and initialize a variable, say we have an int i =10; then after some code this variable would be modified like this code bellow public class reset { public static void main(String[] args) { // TODO Auto-generated…
Curcuma_
  • 851
  • 2
  • 12
  • 37
-2
votes
5 answers

What is significance of static keyword in Java and in C++?

What is the importance of Static keyword in Java and in C++ and how it's functionality differ in both programming languages ?
Rachel
  • 100,387
  • 116
  • 269
  • 365
-2
votes
6 answers

Seemingly Inconsistent "Pass By Value" rules. Was the choice of int [] just syntactic sugar to make array objects look like C/C++ arrays?

I read something online that incorrectly stated that standard int [], etc arrays in Java were passed as copies, rather than passing references to the arrays, in analogy with the basic numerical types, and ended up overwriting an array when I thought…
cons
  • 14,423
  • 4
  • 20
  • 14
-3
votes
1 answer

Pure SQL way to transform value to column name

I've been interested by this question, and the answer seems great. Nevertheless, as SQL is Turing complete, I would be very curious to see a solution using only pure SQL. I've never used CTE, I guess this is mandatory here.
Samuel
  • 594
  • 1
  • 6
  • 22
-3
votes
1 answer

Automatically apply C# 7 getter and setter style

Is there any way to automatically apply C# 7 getter and setter styles (or maybe other new language features)? It would be nice if there would be any way to automatically change properties like these: public string MyProperty1 { get { …
ˈvɔlə
  • 9,204
  • 10
  • 63
  • 89
-3
votes
1 answer

.htaccess - Set GET Variable everytime at the end

Hi, momently I turn my Website to an multilanguage Website. Problem: I would like to Read the locale of the user from an GET variable. So the htaccess must write this locale at the end. If this question already exists please send me the link, or is…
-3
votes
3 answers

Useful new .net(3.0,4.0) technology features

Previously it was .net 2.0 which is the big change in .net developement. many developers are working mostly on this. Presently microsoft has introduced .net 3.0 and yet its next version .net 4.0. So the next version is going to be major change in…
balaweblog
  • 14,982
  • 28
  • 73
  • 95
-3
votes
3 answers

Any documentation for ... PHP control structure?

Is there any, official or unofficial, documentation for control structures like this one:

Output

Another case

I did not read docs when first time used it,…
-4
votes
3 answers

Suggest Language for my project

I am working on a project for which we have to decide for a language to work on. Requirements are as follows: Client should work both as web browser based and standalone desktop application.Both will have same feature. Gui should be rich in…
Abhishek Jain
  • 6,296
  • 7
  • 26
  • 34
-4
votes
2 answers

what are the fundamental problems with having non-nullable reference types in C#?

At this moment there is no such thing as non-nullable types in C#. It is quite obvious that as any other feature it takes time and money to get it developed. No questions here. However I can see a lot of benefits in having it. One of the most…
Trident D'Gao
  • 18,973
  • 19
  • 95
  • 159
1 2 3
41
42