Timeline for I don't like curry
Current License: CC BY-SA 4.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 30, 2020 at 15:45 | comment | added | user | Sorry, I meant to also allow constraining the return type, but forgot to actually write that in my question. I've modified that now, so you're good to use int instead of auto. | |
| Dec 30, 2020 at 3:46 | comment | added | Daniel Schepler | Oh, there was a typo in the last version (as well as an unnecessary space). Corrected version: tio.run/##fY6xbsMgFEV3vuJJGQI1tipni51I/… | |
| Dec 30, 2020 at 3:42 | comment | added | EasyasPi | Shows you how much I don't know about C++20. :P | |
| Dec 30, 2020 at 3:31 | comment | added | Daniel Schepler | Or with a complete reorganization with C++20, down to 119 bytes: tio.run/… | |
| Dec 30, 2020 at 3:22 | comment | added | EasyasPi | Sorry, yeah I got excited 🤦♂️ By the way, if you use C++20, -9 bytes with abbreviated templates | |
| Dec 30, 2020 at 3:07 | comment | added | Daniel Schepler | But with the expanded definition of T, finally something I was trying before with a forward declaration so we don't need the decltype anymore does save 3 bytes now: tio.run/… | |
| Dec 30, 2020 at 2:56 | comment | added | Daniel Schepler | @EasyasPi The last version you posted is giving a compiler error when I click on the link. | |
| Dec 30, 2020 at 2:45 | comment | added | EasyasPi | And another 3 for removing return braces and #define O auto operator()( | |
| Dec 30, 2020 at 2:42 | comment | added | EasyasPi | -12 bytes using #define T template<class | |
| Dec 30, 2020 at 2:29 | history | answered | Daniel Schepler | CC BY-SA 4.0 |