-
# Creational patterns
- **Word Creation – WordsFactory -> add class Database -> read - DONE**
- **ScoreBoard – Singleton + Lazy initialization - DONE**
- **Letters and Players - Prototype DONE**
# S…
-
Tracking issue for merging: https://github.com/lpxxn/rust-design-pattern/blob/master/behavioral/iterator.rs
Example:
```
//! Iterator is a behavioral design pattern that lets you traverse element…
-
Might be related to https://github.com/rust-lang/rust/issues/123076
### Code
```Rust
fn foo(s: &[usize]) {
let [a, b @ ..] = s else {panic!()};
let [a, mut b @ ..] = s else {panic!()}…
faptc updated
4 months ago
-
Hi, I am migrating [dash-mantine-components](https://github.com/snehilvj/dash-mantine-components) to typescript. However, I have been facing some issues with the doc strings generation. The doc string…
-
```
#include
using namespace std::literals;
static constexpr auto pattern =
ctll::fixed_string{R"(([^.]|[.])*(^|[^{])(\{\{)*\{[^{}]*)"};
constexpr bool check(std::string_view sv) noexc…
-
It probably must start from 0? one key and value which is at 0 is always missed when using iterator
correction: iterator interface is a bit confusing, right pattern of usage get() next() get() instea…
-
Right now you can do this:
```crystal
"hello0".scan(/../) # => [Regex::MatchData("he"), Regex::MatchData("ll"), Regex::MatchData("o0")]
```
Or this:
```crystal
"hello0".scan(/../) do |matc…
-
Patterns containing embedded NUL bytes are successfully compiled with `pcre2_compile` when a non-`PCRE2_ZERO_TERMINATED` `length` argument is provided to `pcre2_compile` (e.g. for length-counted binar…
-
I initially tried to get this functionality by combining off-the-shelf views, but I don't think that is possible.
So, I am trying to write a group_view that is analogous to split_view but takes a l…
-
In STL-ASan-CI runs, seemingly random x86 test cases fail with exit code 3221225477 (0xC0000005) indicating an Access Violation. Let's track sporadic AVs here and see if there's a pattern.
Note that …