611 questions
-4
votes
2
answers
260
views
what are the fundamental problems with having non-nullable reference types in C#? [closed]
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 ...
6
votes
1
answer
896
views
Which cards and compute capabilities are required to fully utilize CUDA 5's features [closed]
We just received the stable version of CUDA 5. There are some new terms like Kepler and ability of using MPI with better performance, and running the same card with 32 applications at the same time. I ...
3
votes
4
answers
918
views
Where can I learn JavaScript features not yet included in ECMAScript standard?
I just tried in Firebug console,
let (X=10) X/2
and
[x,y]=[y,x]
These are features supported by SpiderMonkey, I guess V8 has its own share.
Where can I learn of features that are not yet included ...
0
votes
2
answers
160
views
statically-typed languages with types decided at runtime?
for example, something like this in Ada (if it were to support this):
type Type_Name is range bottom .. top;
where "bottom" and "top" are variables.
or something like this in C (if it were to ...
1
vote
1
answer
126
views
What language features are useful for fast-prototyping?
What languages features are known for being useful for fast prototyping of projects before starting the actual code?
6
votes
3
answers
2k
views
how can I create a truly immutable doubly linked list in C#?
It is more of a theoretical question: Is it possible by any means in C# to create a truly immutable doubly linked list? A problem as I see it is in the mutual dependency of 2 adjacent nodes.
By "...
-3
votes
3
answers
234
views
Any documentation for <? if(..){ ?>...<? } ?> PHP control structure? [closed]
Is there any, official or unofficial, documentation for control structures like this one:
<?php if ($expression == true) { ?>
<h3>Output</h3>
<?php } else { ?>
<h3&...
8
votes
2
answers
30k
views
When isset() should be used on Array without specifying key?
I have learned that isset($array) is not required when checking for existence of particular key, however I also know that there is some reasons to check, without known key, if $array is instantiated.
...
2
votes
9
answers
186
views
Is there an easier way of representing conditions in C++?
I wrote a basic tic-tac-toe game based on multidimensional arrays. g[3][3]. In my program I have about 9 conditions like the one I am about to show you:
if((g[0][0] == X && g[0][1] == X &&...
3
votes
1
answer
217
views
Implementing Feature Toggles in Perl5
i'd like to be able to create "ghost" packages and subs. I have a configuration (ini) file with entries like this:
[features]
sys.ext.latex = off
gui.super.duper.elastic = off
user.login.rsa = on
...
1
vote
1
answer
233
views
How to use [function] in webdna
I have been spending hours digging in Govinda great job in WebdnaCodeSparker.
I must confess I have never been using the [function] and I now wondering how to use it...
I went thought the doc, it ...
4
votes
5
answers
227
views
What is it called in Java when you create an instance on the fly?
In code,
class MyObject {
public String doThing() {
return "doh";
}
}
class MyClass {
private myObject = null;
public MyClass() {
myObject = new MyObject() {
...
7
votes
5
answers
1k
views
If Java has no Preprocessor what is "import"
This article says No More Typedefs, Defines, or Preprocessor in 2.2.1 . In C++ the include is part of the preprocessor. What is the import?
0
votes
2
answers
495
views
Why does not exists enum-extensions in C#?
I think that many C# developers collided with a such problem: there is some enumeration in standart .net library and many standart classes and their methods to work with them. But if you want to ...
5
votes
3
answers
1k
views
Smalltalk runtime features absent on Objective-C?
I don't know well Smalltalk, but I know some Objective-C. And I'm interested a lot in Smalltalk.
Their syntax are a lot different, but essential runtime structures (that means features) are very ...
2
votes
5
answers
117
views
What are the arguments against the use of the "<?="? [duplicate]
Possible Duplicate:
Are PHP short tags acceptable to use?
The <?= is one of the very few elegant things about PHP, IMO. Yet, there are people that deliberately avoid it (in favor of the much ...
2
votes
1
answer
162
views
what features did c get from c++? [closed]
What features were added to c that were originally in c++?
When where they added and for what reason(what where the pro/con arguments)?
How do they differ in c as compared to c++?
Did the features ...
30
votes
2
answers
65k
views
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() and sys.stdin.readline() ? And in which cases one of these methods is preferable ...
1
vote
2
answers
708
views
Can I convert a structure pointer to point to an initial anonymous member in C1x? Is this even the right question?
I'm a bit confused about anonymous structures in C1x. Does the rule that a struct pointer, suitably converted, points to it's first member apply to an initial anonymous struct, or simply to the ...
45
votes
1
answer
16k
views
Why doesn't Java varargs support collections?
In my Java code I often use the very handy method(Class... args) varargs. As far as I know, they allow you to pass any amount of Class objects or an array of Class[]. Since I also often use the Java ...
4
votes
1
answer
155
views
c# anonymous type question
In the following code why are the variables c2 and c3 of a different anonymous type?
Thanks in advance for any advice and ... cheers !
namespace ConsoleApplication5
{
class Program
{
...
11
votes
6
answers
574
views
Which syntax options/language features did Scala remove over time (and why)? [closed]
The title pretty much sums up my question.
The deprecation and removal of case class inheritance is a pretty new one, and I wonder which things got removed/substantially changed before that. I ...
2
votes
2
answers
160
views
for object in collection where object inherits
In objective-c, is
for (Foo *foo in fooList) ...
more like which of the following
@interface Bar : Foo ...
for (Foo *f in fooList) {
// A:
if ([f isMemberOfClass:[Foo class]]) ... // dont ...
12
votes
5
answers
426
views
Java Language Specification - Cannot understand 'BlockStatement'
I've been examining the Java Language Specification here (instead I should be out having a beer) and I am curious about what a method can contain. The specification states a method body can contain a ...
3
votes
5
answers
6k
views
In VB.NET why should I use Select, instead of If?
I've recently graduated and started a real job. In our training they've been exposing us to VB.NET and a lot of the features they use here. In some of the examples, they've used Select statements (and ...