language-design
Why is C++ "typename" required even in cases where there is no parsing ambiguity? [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: Use of typename keyword with template function parameters[详细]
2023-04-13 06:33 分类:问答Can a statically typed language be developed with the DLR?
I have to develop a compiler for a statically typed language for .NET I\'m considering using the DLR for this instead of building all the parts (Lexer/Parser, Syntax, Semantic, Code Generation).[详细]
2023-04-10 18:39 分类:问答Why aren't the arguments to File.new symbols instead of strings?
I was wondering why the people who wrote the File library decided to make the arguments that determine what mode the file is opened in strings instead of symbols.[详细]
2023-04-07 13:44 分类:问答Why are modules explicitly named in files?
From the D language reference: Modules have a one-to-one correspondence with source files. The module name is the file name with the path and extension stripped off.[详细]
2023-04-07 01:29 分类:问答What are the strategies to support/integrate units of measurements in languages?
I wonder from purely language-design point of view which \"features\" (semantically and syntactically) an \"implementation\" of SI units would require.[详细]
2023-04-06 06:55 分类:问答What are Haskell's strictness points?
We all know (or should know) that Haskell is lazy by default. Nothing is evaluated until it must be evaluated. So when must something be evaluated? There are points where Haskell must be strict. I cal[详细]
2023-04-06 01:01 分类:问答Is it possible to implement F#'s infrastructure for Units of Measurement in Scala?
F# ships with special support for a unit of measurement system, which provides static type safety while compiling down to the numeric types instead of bu开发者_如何学编程rdening the runtime with wrapp[详细]
2023-04-05 23:56 分类:问答Why is modulus defined the way it is in programming languages
I\'m not asking about the definition but rather why the language creators chose to define modulus with asymmetric behavior in C++. (I think Java too)[详细]
2023-04-05 17:10 分类:问答Parsing math rules (with some perks) the same way Soulver (a Mac App) does
Soulver is a great scratch pad for math that allows you to wr开发者_开发知识库ite expressions in a very natural form, which makes it versatile and fun to use in many occasions. There\'s a short video[详细]
2023-04-05 12:00 分类:问答Java and .NET: Why different sorting algorithms are used by default? [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 so[详细]
2023-04-05 09:02 分类:问答