Shorty: A More Concise C++ Lambda Library
2025-04-12
Shorty is a C++ library designed to offer a terser syntax than native C++ lambdas, not to replace C++ with a lazy DSL. It allows for more intuitive notation for sorting, filtering, zipping, and calling external functions, supporting various argument access methods and type conversions. For example, `std::ranges::sort(subject, $lhs > $rhs);` sorts concisely, and `subject | std::views::filter(($i % 2) == 0);` filters even numbers. Its design prioritizes developer efficiency and reduced boilerplate code.
Development
Lambda Expressions