type-safety
Using types to model arbitrary constraints for compile-time checking
Given the strong type system of Scala, I had an ambitious project which I\'m about to abandon now because the effort to usefulness ratio seems to be too high.[详细]
2023-02-22 12:54 分类:问答What is the benefit of using type-safe collection classes?
I was wondering, why on some开发者_如何转开发 occasions i see a class representing some type\'s collection.[详细]
2023-02-21 03:50 分类:问答Haskell-like type system in C
I was wondering, is it possible to integrate haskell\'s powerful type system into a language like C开发者_StackOverflow中文版, and still be able to do efficent low level programming?There have been at[详细]
2023-02-16 08:19 分类:问答Enforce type specification on public members of Groovy types
In Groovy, specifying types is optional. But there are advantages to specifying them on public class members like m开发者_如何学Cethods and properties. It\'s a good form of documentation and it enable[详细]
2023-02-11 17:31 分类:问答Is static_cast misused?
I have mixed feelings about static_cast, as it is the safest C++ cast available, but allows both safe and unsafe conversions at the same time, so you have to know the context to say if it is actually[详细]
2023-02-09 22:56 分类:问答Comparing arrays of different size
I am implementin开发者_如何学Pythong my own boost::array variant for fun and education, and I was just wondering: should comparing two arrays of different size yield false, or should it be a type erro[详细]
2023-02-07 13:30 分类:问答c++: using type safety to distinguish types oftwo int arguments
I have various functions with two int arguments (I write both the functions and the calling code myself). I am afraid to confuse the order of argument in some calls.[详细]
2023-02-04 02:12 分类:问答About casting and objects
开发者_如何转开发it\'s simple, i just want a explanation about this: internal class B { // Base class[详细]
2023-02-01 01:06 分类:问答Java generics: why someObject.getClass() doesn't return Class<? extends T>?
I would expect that from the aspect of compile time as well as from the aspect of runtime it wouldn\'t be a problem for .getClass() to provide a correctly-typed return value.[详细]
2023-01-30 17:26 分类:问答Possible to have compiler support (type safety) for avoiding double encoding for anti-XSS during Web development?
Is it possible to have compiler support to enforce the cleanup of data (XSS encoding)? This question got me thinking about double encoding and the other times when encoding is needed.Seems like i开发[详细]
2023-01-19 00:10 分类:问答