terrible implementation of isEven function using procedural macros
Find a file
2025-10-25 20:17:29 -05:00
src fear 2025-10-25 20:17:29 -05:00
tests fear 2025-10-25 20:17:29 -05:00
.gitignore fear 2025-10-25 20:17:29 -05:00
Cargo.lock fear 2025-10-25 20:17:29 -05:00
Cargo.toml fear 2025-10-25 20:17:29 -05:00
LICENSE.md fear 2025-10-25 20:17:29 -05:00
README.md fear 2025-10-25 20:17:29 -05:00

is-even-proc

making isEven but much worse

Context

Inspired by this tweet. I wanted to make a procedural macro that would automatically generate all the if/else cases for this. Please don't use it, I beg you.

License

Why the hell would you want to use this?

Either way, this program is licensed under the GNU General Public License, Version 3.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.