digitalmars.D - D-like ranges for C++17 in a 2.5 klines single header file
- Per =?UTF-8?B?Tm9yZGzDtnc=?= (5/5) Oct 13 2020 Here's a more compact encoding of D/C++20-like ranges packed into
- user1234 (3/8) Oct 13 2020 compared to std.range or std.algorithm it is very unpleasant to
- Simen =?UTF-8?B?S2rDpnLDpXM=?= (5/7) Oct 13 2020 It's C++. Compared to a medium-rare rib-eye, stabbing yourself in
- claptrap (3/13) Oct 13 2020 And that's "simpler ranges"... how bad are the ones he thinks are
- Stefan Koch (5/10) Oct 13 2020 I first I thought it's amazing they could do it just that many
Here's a more compact encoding of D/C++20-like ranges packed into a 2.5 klines single header file: The file `ranges.hpp` syntaxcheck in 0.3s with Clang 10 on Ubuntu 20.04 on my 6 year old laptop. https://github.com/simonask/rx-ranges/
Oct 13 2020
On Tuesday, 13 October 2020 at 09:12:58 UTC, Per Nordlöw wrote:Here's a more compact encoding of D/C++20-like ranges packed into a 2.5 klines single header file: The file `ranges.hpp` syntaxcheck in 0.3s with Clang 10 on Ubuntu 20.04 on my 6 year old laptop. https://github.com/simonask/rx-ranges/compared to std.range or std.algorithm it is very unpleasant to read.
Oct 13 2020
On Tuesday, 13 October 2020 at 10:33:05 UTC, user1234 wrote:compared to std.range or std.algorithm it is very unpleasant to read.It's C++. Compared to a medium-rare rib-eye, stabbing yourself in the groin with a fork is very unpleasant. -- Simen
Oct 13 2020
On Tuesday, 13 October 2020 at 10:33:05 UTC, user1234 wrote:On Tuesday, 13 October 2020 at 09:12:58 UTC, Per Nordlöw wrote:And that's "simpler ranges"... how bad are the ones he thinks are too complicated?Here's a more compact encoding of D/C++20-like ranges packed into a 2.5 klines single header file: The file `ranges.hpp` syntaxcheck in 0.3s with Clang 10 on Ubuntu 20.04 on my 6 year old laptop. https://github.com/simonask/rx-ranges/compared to std.range or std.algorithm it is very unpleasant to read.
Oct 13 2020
On Tuesday, 13 October 2020 at 09:12:58 UTC, Per Nordlöw wrote:Here's a more compact encoding of D/C++20-like ranges packed into a 2.5 klines single header file: The file `ranges.hpp` syntaxcheck in 0.3s with Clang 10 on Ubuntu 20.04 on my 6 year old laptop. https://github.com/simonask/rx-ranges/I first I thought it's amazing they could do it just that many lines of code. After looking at it though they're using the stdlib a whole a lot. Which I consider cheating ;)
Oct 13 2020