Dana Jansens

Results 122 issues of Dana Jansens

Allow a fn to receive an iterator without being templated by receiving a `DynIterator` which dispatches through virtual or otherwise (Stack or Heap erasure like for DynFn and friends). This...

design

https://thephd.dev/sol3-compile-times-binary-sizes > The alternative fix is to use a std::tuple. Unfortunately, tuples are a poor idea in practice, especially on VC++ 2017. Currently, VC++’s tuple is implemented recursively, with some...

design

Rust does not have this ability due to lack of variadics, though the tuple_list crate has something: https://docs.rs/tuple_list/latest/tuple_list/trait.AsTupleOfRefs.html ```cpp constexpr auto as() const& { return [this](std::index_sequence) { return ::sus::Tuple( tuple_.template...

design

Using an `operator[]` on a type that takes `size_t` works great with unsigned types. They convert to primitives. However `operator[]` on a pointer is built in and takes a **signed**...

design

We want to stabilize numerics, which come with Option. But not stabilize iterators and tuples yet which are found in the Option API. We need to mark those methods as...

design

cc: @davidben Nothing here would compile, it's just notes for later. Also: * sus_if_msvc for attributes should be sus_if_msvc_not_cl * "language is msvc variant" vs "compiler is msvc" * sus_if_gnuc_language...

Rust provides blanket impl of TryFrom when From is satisfied: https://doc.rust-lang.org/stable/src/core/convert/mod.rs.html#762 which returns an error type of [Infallible](https://doc.rust-lang.org/stable/std/convert/enum.Infallible.html). Similarly, sus::construct::TryFrom should be satisfied, and it should be possible to call...

Currently MSVC can not build subspace. 17.4.2 works ✅ 17.6.3 does not 🚫 Github windows-latest has upgraded to 17.6.3 so we can't run MSVC bots. Github windows-2019 has MSVC 16...

build

When E in Result is a NeverValueField type, we could use that to tell if T or E is present without a third field. We can do this by storing...

design