The language-features tag has no wiki summary.
2
votes
1answer
208 views
+50
Writing a Compiler Compiler - Insight on Use and Features
This is part of a series of questions which focuses on the sister project to the Abstraction Project, which aims to abstract the concepts used in language design in the form of a framework. The ...
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
243 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
602 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
244 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
527 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
415 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
205 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
338 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
341 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
249 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
924 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
143 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
289 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 ...
6
votes
3answers
374 views
Is there a language where collections can be used as objects without altering the behavior?
Is there a language where collections can be used as objects without altering the behavior?
As an example, first, imagine those functions work:
function capitalize(str)
//suppose this ...
0
votes
1answer
329 views
An alternative to multiple inheritance when creating an abstraction layer?
In my project I am creating an abstraction layer for some APIs. The purpose of the layer is to make multi-platform easier, and also to simplify the APIs to the feature set that I need while also ...
-1
votes
1answer
182 views
What factors affect the resources of a compiled vs. interpreted website? [closed]
As a website grows it usually need more recources to ecounter. Last year, I read an article (I don't have the URL right now) about how a compiled server side langauge can save money when the site ...
9
votes
3answers
843 views
Appropriate programming language to design music software
I want to design a software for my musical instrument which is a rhythmic one (there is no melody).
All I want these software to do is :
make the user able to compose music
play what user has ...
20
votes
6answers
2k views
Why the static data members have to be defined outside the class separately in C++ (unlike Java)?
class A {
static int foo () {} // ok
static int x; // <--- needed to be defined separately in .cpp file
};
I don't see a need of having A::x defined separately in a .cpp file (or same file ...
10
votes
7answers
326 views
What is a good alternative to the name variable for a language that only has immutable references or labels?
For example, in functional languages, variables are single assignment and their values are immutable once assigned. So they have two states unbound and bound, once bound they can't be changed.
Is ...
10
votes
11answers
883 views
What do you do when you can't seem to understand a certain part of programming? [closed]
I'm learning new languages as I go along, I write code for very basic programs in multiple languages, and I go to classes. I've read books, articles, lessons, videos, you name it, however I can't seem ...
10
votes
5answers
565 views
Is there a specific purpose for heterogeneous lists?
Coming from a C# and Java background, I'm used to my lists being homogeneous, and that makes sense to me. When I started picking up Lisp, I noticed that the lists can be heterogeneous. When I started ...
3
votes
2answers
220 views
C++ users proposals
I believe I have some good suggestions to improve the C++ language. Who should I contact to discuss this? Do I have the chance to be heard, especially if I'm not a renowned expert?
-2
votes
2answers
675 views
Are there any languages that have both high- and low-level facilities?
Are there any? If not, is it feasible to create one? Why or why not?
In theory it would be very helpful to have a programming language that has both shell and regular programming language ...
2
votes
7answers
222 views
What's a good way to prepare for this course titled “Programming Language Security”?
I have a course with the following description:
The purpose of this course is the study of programming language security features and languages designed to support it explicitly. Static and ...
7
votes
3answers
676 views
What common programming problems are best solved by using prototypes and closures?
As much as I understand both concepts, I can't see how can I take advantage of JavaScript's closures and prototypes aside from using them for creating instantiable and/or encapsulated class-like ...
4
votes
3answers
354 views
Does Java have automatic memory management?
I have started learning about C# and I come to what is called 'Automatic memory management' or 'Garbage collectors' and I'm wondering if Java contains something like this as well? and if it does, does ...
0
votes
5answers
527 views
What is the most concise, unambiguous syntax for operator associated methods (for overloading etc.) that doesn't pollute the namespace?
Python tends to add double underscores before its built-in or overloadable operator methods, like __add(), whereas C++ requires declaring overloaded operators as operator + (Thing& thing) { /* ...
14
votes
4answers
1k views
Is Java instanceof operator considered reflection, and what defines reflection?
I had a discussion with a coworker today, whether usage of using the Java operator instanceof is a kind of reflection. And the discussion quickly evolved into what actually defines reflection.
So, ...
2
votes
3answers
205 views
Can applications override the OS keyboard layout?
We have in-house .NET application, which can be used across multiple languages. Lately we received a strange bug that is when our application is being used, user was unable to enter accent characters ...
6
votes
5answers
362 views
Java without implementation inheritance
In a recent video on Java, Joshua Bloch states at 4 minutes 20 seconds into the video:
And then there's inheritance, and that was a marketing necessity. You know, we can argue whether you really ...
6
votes
3answers
295 views
Is there really a choice of the best language for a specific project?
Programmers.SE has plenty of questions of beginner programmers asking if they must use a specific language or another one in their daily work, or if they must learn a language or another. Those ...
2
votes
2answers
101 views
Problem understanding what “Exporting functions means”
I cannot understand what the following means "ISAPI applications can be written using any language which allows the export of standard C functions, for instance C, C++, Delphi."
What is "allowing ...
10
votes
2answers
454 views
How easy should a language development framework be to use?
This is part of a series of questions which focuses on a project called the Abstraction Project, which aims to abstract the concepts used in language design in the form of a framework.
Another ...
5
votes
3answers
322 views
Is structural typing in a hierarchical model necessary?
This is part of a series of questions which focuses on a project called the Abstraction Project, which aims to abstract the concepts used in language design in the form of a framework.
Another ...
5
votes
4answers
569 views
Unusual languages for numerical analysis
This question is inspired by these questions (here and here).
I do mostly numerical work, and I usually use C++, Fortran, and occasionally Numpy. I'm trying to broaden my horizons, and I'm looking ...
2
votes
1answer
139 views
Will the portions of Boost that are incorporated into the new C++ standard continue to be developed?
What will happen to the portions of the Boost library that are incorporated into the new C++ standard?
Will they continue to evolve and any changes be reincorporated into the standard which follows ...
0
votes
4answers
465 views
About languages strongly typed with late binding, do they make sense?
I never learnt anything about VB6 (and I dont want to) but I wanted to search for bad things in computer software, so my first though was VB6.
So for example, VB6 was strongly typed with late ...
2
votes
9answers
516 views
The New Programming Language & BCL for the Cloud
Let's say you need to implement a new programming language and BCL designed specifically for operating in the cloud (it won't be used on client machines ever). It should be optimized for cloud ...
11
votes
10answers
981 views
Why dynamically typed languages do not let the developer specify the type?
The dynamically typed languages I know never let the developers specify the types of variables, or at least have a very limited support for that.
JavaScript, for example, doesn't provide any ...
6
votes
1answer
2k views
A combined if/switch statement syntax with exception handling for a C#-inspired language
It is sometimes necessary to try/catch exceptions inside the "if" condition, but not the body that follows. In C#, this is really rather cumbersome, requiring locals and code that isn't entirely ...
5
votes
6answers
1k views
Programming languages differences and efficiency, does it matter?
I am fairly new to programming, I have studied in computer science for 3 years at college, but as you know, school is only 2% of what really makes one a fully-fledged programmer.
I have a lot of ...
10
votes
7answers
479 views
Why binding is not a native feature in most of the languages?
IMHO binding a variable to another variable or an expression is a very common scenario in mathematics. In fact, in the beginning, many students think the assignment operator(=) is some kind of ...
7
votes
7answers
910 views
How do you choose to use a specific programming language?
I was having a small talk between teammates about how you choose a programming language for use in a project which lead me to think that there are many criteria to choose one in the beginning of a ...
10
votes
5answers
440 views
Where, in an object oriented system should you, if at all, choose (C-style) structs over classes?
C and most likely many other languages provide a struct keyword for creating structures (or something in a similar fashion). These are (at least in C), from a simplified point of view like classes, ...
9
votes
5answers
622 views
First Class Functions
I started seriously taking a look at Lisp this weekend (by which I mean I have only been learning Lisp and not reverting back to projects in C#) and must say I love it. I have dabbled with other ...
8
votes
5answers
276 views
Is there a better term than “smoothness” or “granularity” to describe this language feature?
One of the best things about programming is the abundance of different languages. There are general purpose languages like C++ and Java, as well as little languages like XSLT and AWK.
When ...
5
votes
10answers
314 views
Does your workplace allow the use of multiple, interoperable programming languages?
Since now there are several good languages that target the JVM and can interop with Java with varying degrees of painlessness, and likewise for the CLR (especially with the recent addition of F# as an ...