Extending and Simplifying C++: Thoughts on Pattern Matching using 'is' and 'as', and Can C++ be 10x Simpler
0 码力 | 108 页 | 5.08 MB | 5 月前3DEDUCING this PATTERNS
a().c().d().a(); Super{}.a().d().e(); // phew... getting really complicatedWITH P0847, IT'S SIMPLER All the same flat pattern. struct Builder { templateSelf& a(this Self&& deduplication/correctness-by-compiler Completeness-by-compiler Class interface gets "simpler & safer on the outside" Constrained descendants Simpler member function pointersADT STYLE ADVANTAGES Code deduplication/co deduplication/correctness-by-compiler Completeness-by-compiler Class interface gets "simpler & safer on the outside" Constrained descendants Simpler member function pointers Easier patternsADT STYLE ADVANTAGES Code 0 码力 | 126 页 | 5.15 MB | 5 月前3Cooperative C++ Evolution
new language” again, for the whole language?5 Major improvement via directed evolution 10 simpler metric: 90% of today’s guidance not needed 50 safer metric: 98% fewer type/bounds/init/lifetime metafunction on an ordinary type Compile-time library, not baked-in → a more powerful language can be simpler Metafunction can: apply defaults, enforce requirements, and generate code Same safeties as enum metafunction on an ordinary type Compile-time library, not baked-in → a more powerful language can be simpler Metafunction can: apply defaults, enforce requirements, and generate code Same safeties as enum0 码力 | 85 页 | 5.73 MB | 5 月前3When Nanoseconds Matter: Ultrafast Trading Systems in C++
77 Concurrent Queues Bounded? Yes – simpler & faster Blocking? # Consumers? Message Size? Dispatch? Type Support?78 Concurrent Queues Bounded? Yes – simpler & faster Blocking? No – readers don’t Bounded? Yes – simpler & faster Blocking? No – readers don’t affect the writer # Consumers? Many Message Size? Dispatch? Type Support?80 Concurrent Queues Bounded? Yes – simpler & faster Blocking Message Size? Variable length Dispatch? Type Support?81 Concurrent Queues Bounded? Yes – simpler & faster Blocking? No – readers don’t affect the writer # Consumers? Many Message Size? Variable0 码力 | 123 页 | 5.89 MB | 5 月前3Spring Framework 1.1.1 Reference
pre-existing beans which provide only multi-argument constructors, and no setters. Additionally, for simpler beans, some people prefer the constructor approach as a means of ensuring beans can not be constructed although an around advice can accomplish the same thing. Using the most specific advice type provides a simpler programming model with less potential for errors. For example, you don't need to invoke the proceed() and the AOP Alliance does not currently define pointcut interfaces. 5.3.2.2. Before advice A simpler advice type is a before advice. This does not need a MethodInvocation object, since it will only0 码力 | 194 页 | 1.12 MB | 1 年前3Spring Framework 1.1.3 Reference
pre-existing beans which provide only multi-argument constructors, and no setters. Additionally, for simpler beans, some people prefer the constructor approach as a means of ensuring beans cannot be constructed although an around advice can accomplish the same thing. Using the most specific advice type provides a simpler programming model with less potential for errors. For example, you don't need to invoke the proceed() and the AOP Alliance does not currently define pointcut interfaces. 5.3.2.2. Before advice A simpler advice type is a before advice. This does not need a MethodInvocation object, since it will only0 码力 | 203 页 | 1.15 MB | 1 年前3Spring Framework 1.1.2 Reference
pre-existing beans which provide only multi-argument constructors, and no setters. Additionally, for simpler beans, some people prefer the constructor approach as a means of ensuring beans cannot be constructed although an around advice can accomplish the same thing. Using the most specific advice type provides a simpler programming model with less potential for errors. For example, you don't need to invoke the proceed() and the AOP Alliance does not currently define pointcut interfaces. 5.3.2.2. Before advice A simpler advice type is a before advice. This does not need a MethodInvocation object, since it will only0 码力 | 199 页 | 1.14 MB | 1 年前3Spring Framework 1.1.5 Reference
pre-existing beans which provide only multi-argument constructors, and no setters. Additionally, for simpler beans, some people prefer the constructor approach as a means of ensuring beans cannot be constructed although an around advice can accomplish the same thing. Using the most specific advice type provides a simpler programming model with less potential for errors. For example, you don't need to invoke the proceed() and the AOP Alliance does not currently define pointcut interfaces. 5.3.2.2. Before advice A simpler advice type is a before advice. This does not need a MethodInvocation object, since it will only0 码力 | 223 页 | 1.22 MB | 1 年前3Spring Framework 1.2.1 Reference
pre-existing beans which provide only multi-argument constructors, and no setters. Additionally, for simpler beans, some people prefer the constructor approach as a means of ensuring beans cannot be constructed although an around advice can accomplish the same thing. Using the most specific advice type provides a simpler programming model with less potential for errors. For example, you don't need to invoke the proceed() and the AOP Alliance does not currently define pointcut interfaces. 5.3.2.2. Before advice A simpler advice type is a before advice. This does not need a MethodInvocation object, since it will only0 码力 | 244 页 | 1.30 MB | 1 年前3Spring Framework 1.2.0 Reference
pre-existing beans which provide only multi-argument constructors, and no setters. Additionally, for simpler beans, some people prefer the constructor approach as a means of ensuring beans cannot be constructed although an around advice can accomplish the same thing. Using the most specific advice type provides a simpler programming model with less potential for errors. For example, you don't need to invoke the proceed() and the AOP Alliance does not currently define pointcut interfaces. 5.3.2.2. Before advice A simpler advice type is a before advice. This does not need a MethodInvocation object, since it will only0 码力 | 243 页 | 1.29 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100