language-design
Why does erasure complicate implementing function types?
I read from an interview with Neal Gafter: \"For example, adding function types to the programming language is much more difficult with Erasure as part of Generics.\"[详细]
2023-04-05 09:01 分类:问答General C# question
Following class has two method wherein M1 complain ‘not all code path return a value’ and M2 doesn’t.[详细]
2023-04-05 00:39 分类:问答Which language idioms/paradigms/features make it hard to add support for "type providers"?
F# 3.0 has added type providers. I wonder if it 开发者_C百科is possible to add this language feature to other languages running on the CLR like C# or if this feature only works well in a more functio[详细]
2023-04-04 20:29 分类:问答Formal treatment of RAII and/or safe deallocations in C++
Are there any research papers on formal treatment of RAII and/or 开发者_运维百科safe deallocations in C++?Take a look at \"A Mechanized Semantics for C++ Object Construction and[详细]
2023-04-04 16:46 分类:问答Can value types be implemented by inlining?
When I first saw the value types in C#, the first thing I thought was \"wow, what a great optimization\", the second thing is, \"do we really need a new language construct? can\'t we do that with anno[详细]
2023-04-04 14:24 分类:问答What's a Good Way to Test that Identifiers aren't Being Truncated and Thereby Mixed Up?
In C++ class today, we discussed the maximum possible length of identifiers, and how the compiler will eventually stop treating variables as different, after a certain length. (My professor seems to h[详细]
2023-04-04 05:22 分类:问答Good language to implement for senior project? [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.[详细]
2023-04-04 05:01 分类:问答Why is there an escape sequence for VERTICAL TAB?
Another question, What is a vertical tab?, describes what 开发者_开发技巧the vertical tab character was originally used for.[详细]
2023-04-03 17:12 分类:问答Parser for user defined infix operators
I am writing an interpreter for a language where functions can be used as operators. However, the functions content will only be known at runtime.[详细]
2023-04-03 05:48 分类:问答Calling copy constructor of base class while creating object of derive class by copying another object of derive class
class base {}; class der : public base{}; der d1; der d2(d1); This statement invokes default constructor of class base then copy constructor of claas der.[详细]
2023-04-02 05:34 分类:问答