The language-features tag has no wiki summary.
20
votes
6answers
1k views
How can I say that programming language compiles to other languages?
How can I say in english, that programming language can be compiled to other programming languages?
The example can be Haxe. On the website the language is decribed as "Multiplatform":
...
1
vote
2answers
228 views
Why does JavaScript count array lengths by the last index?
JavaScript seems to calculate the array length property by the number of the last index in the array rather than counting the number of items in the array. Example:
var testArray = ['a', 'b', 'c'];
...
-1
votes
4answers
600 views
Is is acceptable to create mediocre code now in preparation for new language features? [closed]
I'll be specific: Java 8 is promised to bring lambda expressions as well as method and constructor references among other things. As a Java developer I'm super psyched about that.
In my day to day ...
4
votes
4answers
229 views
When to import names into the global namespace? (using x::y, from x import y etc.)
I've been programming in various languages for about 10 years now. And I still haven't figured out when it is a good idea to import something into the global namespace (using x::y in C++, from x ...
0
votes
3answers
523 views
Is function overloading in general considered Evil? [closed]
Recently I found about two new programming languages(Vala and google's GO) which don't support method or function overloading and intend on not supporting them in the future ever! The creators of ...
6
votes
1answer
404 views
Are non Turing-complete languages considered programming languages at all?
Reading a recent question: Is it actually possible to have a 'useful' programming language that isn't Turing complete?, I've come to wonder if non Turing-complete programming languages are considered ...
20
votes
5answers
1k views
Is it actually possible to have a 'useful' programming language that isn't Turing complete?
Where it is accepted that a language has to be Turing complete to be any good, is it actually possible to have a 'useful' programming language that isn't Turing complete?
I should clarify that this ...
1
vote
3answers
202 views
Multiple attribution in Python, JS, …?
I accidentally discovered this a=b=c=d=e=f=2 in python(2.7)(and JavaScript a few minutes later) interpreter .
Is this a feature or just the way the interpreter works, if is a feature how it is ...
-2
votes
1answer
337 views
Why C# has no monkeypatching? [closed]
I was reading about monkeypatching _ dynamically overriding the functionality of classes.
C# allows dynamic extending, but no monkeypatching, which I find reasonable. But I wondered why they ...
4
votes
5answers
330 views
What do you call “X <= $foo <= Y” comparison?
While writing a Perl statement like if ( $foo >= X && $foo <= Y ) yet again, I wondered why many programming languages do not support the more comfortable form if ( X <= $foo <= Y ...
0
votes
2answers
239 views
Static and dynamic programming languages [closed]
Someone who's just getting started in programming asked me about the advantage of different approaches programming languages take.
For example, some allow the programmer to omit variable declarations ...
10
votes
8answers
923 views
Why aren't design patterns added to the languages constructs?
Recently I was talking with a colleague who mentioned that his company was working on adding the MVC design pattern as a PHP extension.
He explained that they wrote C code for adding Controllers, ...
3
votes
3answers
153 views
What actions should I not rely on the packaged functionality of my language for?
While talking with one of my coworkers, he was talking about the issues the language we used had with encryption/decryption and said that a developer should always salt their own hashes. Another ...
1
vote
2answers
141 views
What are/would be the characterists and applications of a programming paradigm where functions can't have statements?
Suppose there is a language where, instead of statements, functions could only be defined in relation to other functions and operators such as partial application and composition. What would be the ...
1
vote
1answer
285 views
Incorporating GoF design patterns in Objective-C without Abstract/Virtual classes
As someone who is becoming more comfortable working in Objective-C I would like to be able to incorporate more design patterns and OOP features in my projects but struggle to implement them as ...