language-features
What is the purpose of case sensitivity in languages? [duplicate]
This question already has answers here: Closed 12 years ago. Possible Duplicates: Is there any advantage of being a case-sensitive programming language?[详细]
2023-01-05 04:39 分类:问答What features of C++ are not compatible with compilers other than Visual Studio?
I was开发者_运维技巧 told to avoid using features of C++ like these as it makes it difficult to port the code to other compilers.[详细]
2023-01-04 15:40 分类:问答Why is only one implicit conversion allowed to resolve the parameters to a function in C++?
This works: #include<cstdio> class A{ public: A(int a):var(a){} int var; }; int f(A obj) { return obj.var;[详细]
2023-01-04 15:31 分类:问答What is the python "with" statement designed for?
I came across the开发者_如何学JAVA Python with statement for the first time today.I\'ve been using Python lightly for several months and didn\'t even know of its existence!Given its somewhat obscure s[详细]
2023-01-03 11:52 分类:问答Understanding Ruby Enumerable#map (with more complex blocks)
Let\'s say I have a function def odd_or_even n if n%2 == 0 return :even else return :odd end end And I had a simple enumerable array[详细]
2023-01-03 06:11 分类:问答How can I add similar functionality to a number of methods in java?
I have a lot of methods for logging, like logSomeAction, logAnotherAction etc. Now I want 开发者_开发知识库all these methods make a small pause after printing messages (Thread.sleep).[详细]
2023-01-03 01:07 分类:问答Overview of features in Clojure coming from other languages than CL
I am searching for an overview of the 开发者_如何学编程features of Clojure that are coming from other languages than Common Lisp.[详细]
2023-01-02 23:54 分类:问答How to make switch case accept multiple data types in Java?
While using Java\'s switch case, it excepts on开发者_如何学运维ly char and int, but I want to provide string cases. How to make this possible?You cannot have strings in a switch-case (yet). It\'s on i[详细]
2023-01-02 18:12 分类:问答Best/Worst feature(s) in Visual Studio 2010 [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 soli开发者_如何学[详细]
2023-01-02 12:00 分类:问答Samples of Scala and Java code where Scala code looks simpler/has fewer lines?
I need some code samples (and I also really curious about them) of S开发者_如何学Gocala and Java code which show that Scala code is more simple and concise then code written in Java (of course both sa[详细]
2023-01-01 15:21 分类:问答