language-design
Why does Java use -D to indicate system properties?
Why is th开发者_Python百科e flag that indicates a System property in Java -D? Surely there is some semantics to this letter choice, but I can\'t guess what it is.It is short for setting a system defin[详细]
2023-03-01 00:13 分类:问答Why are Lua's iterators triples?
Lua 5.1\'s reference manual states that an i开发者_JAVA百科terator for var_1, ···, var_n in explist do block end[详细]
2023-02-28 09:49 分类:问答Why is there no base class in C++?
From a design point of view, why is that, in C++, there is no mother-of-all base-class, what\'s usually object in other language开发者_开发知识库s?The definitive ruling is found in Stroustrup\'s FAQs.[详细]
2023-02-27 03:57 分类:问答Custom programming language: how?
Hopefully this question won\'t be too convoluted or vague. I know what I want in my head, so fingers crossed I can get this across in text.[详细]
2023-02-27 01:56 分类:问答Why can't a sub implement an interface and handle event at the same time?
Why can\'t a su开发者_如何学Gob implement an interface and handle event at the same time? The following gives my a syntax error:[详细]
2023-02-25 13:57 分类:问答What's the point of unary plus operator in Ruby?
Apart from making a nice symmetry with unary minus, why is unary plus operator defined on Numeric class? Is there some practical value in it, except for causing confusion allowing writing things like[详细]
2023-02-25 08:50 分类:问答C# methods with multiple return parameters [duplicate]
This question already has answers here: Return multiple values to a method caller (28 answers) Closed 9 years ago.[详细]
2023-02-22 03:29 分类:问答In Perl, why does the `while(<HANDLE>) {...}` construct not localize `$_`?
What was the design (or technical) reason for Perl not automatically localizing $_ with the following syntax:[详细]
2023-02-20 22:43 分类:问答Why is the java.lang.Thread class in Java not marked final by the designers?
What is the essence of allowing the user to create thread by extending the Thread class when we can achieve the same fu开发者_高级运维nctionality by implementing Runnable and pass it to the Thread con[详细]
2023-02-19 19:31 分类:问答Getting metadata for compiling .net language
I\'m toying with doing a proof of concept for a new language targeting the .Net platform. I\'ve got the lexing/parser thing pretty much sorted. Lazy as I am I\'m simply going to generate C# using the[详细]
2023-02-19 06:44 分类:问答