Simplifying C++11 optimal parameter passing when a copy is needed
It seems to me that in C++11 lots of attention was made to simplify returning values from functions and methods, i.e.: with move semantics it’s possible to simply return heavy-to-copy but cheap-to-move values (while in C++98/03 the general guideline was to use output parameters via non-const references or pointers), e.g.:
Why Does F# Contain Both Modules and Namespaces?
I’ve been assuming that F# includes the module keyword in addition to the namespace keyword due to backwards compatibility with OCaml. Is this the only reason for the inclusion of the module keyword or are there other reasons module was included?
Why do old programming languages continue to be revised?
This question is not, “Why do people still use old programming languages?” I understand that quite well. In fact the two programming languages I know best are C and Scheme, both of which date back to the 70s.
Which numeral systems are useful in computer science?
I am wondering which numeral system different programmers are using, or would use if their language has support for them. As an example, in C++ we can use:
Programming language features that help to catch bugs early [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]
Requiring multithreading/concurrency for implementation of scripting language
Here’s the deal: I’m looking at designing my own scripting/interpreted language for fun. I’m only in the planning stages right now; I want to make sure I have a very strong hold on exactly how I will implement everything before I start coding.
KISS principle applied to programming language design?
KISS (“keep it simple, stupid” or “keep it simple stupid”, see e.g. here) is an important principle in software development, even though it apparently originated in engineering. Citing from the wikipedia article:
What is a real-world use case of using a Chomsky Type-I (context-sensitive) grammar
I have been having some fun lately exploring the development of language parsers in the context of how they fit into the Chomsky Hierarchy.
Could a programming language work as well without statements?
As programming in JavaScript, I’ve noticed everything that can be done with statements and blocks can be done with expressions alone. Can a programming language work fine with only expressions? And, if yes, why are statements used at all?
What’s the problem with Scala’s XML literals?
In this post, Martin (the language’s head honcho) writes: