|
You are here |
erikmcclure.com | ||
| | | | |
arne-mertz.de
|
|
| | | | | In this post I will write a bit about each operator and how a straight forward implementation might look if the operator is meant to work similar to built in operators. | |
| | | | |
entangledlogs.com
|
|
| | | | | Generic Programming: Generating part of programs Introduction Generic Programming: Programming with generic parameters to avoid unnecessary code duplication and encourage code reuse. Polymorphism is also another technique to solve code reuse Puts implicit constraints on the generic types that are to be fulfilled by concrete types. template T adder(T LHS, T RHS) { return LHS + RHS; } struct Foo { inv Val = 0; } Foo f = adder(Foo{}, Foo{}): In this code snippet, we assume that Foo meets the requirement tha... | |
| | | | |
hellocplusplus.com
|
|
| | | | | Learn the basics of C++ move semantics and how to use this language feature. This article is useful for programmers of all skill levels. | |
| | | | |
kndrck.co
|
|
| | | Prelude State monads, introduced to me during the data61 functional programming course was one of my most memorable encounter with a monad. This was mainly because things only started to clicked and made a tiny bit of sense after a couple of weeks of frustration. This article is my attempt to explain the underlying mechanics of the State Monad to try and relief the frustration of whomever who was in my position. | ||