marioortizmanero / nullderef.com

Source code for NullDeref, my personal blog
https://nullderef.com
GNU General Public License v3.0
9 stars 1 forks source link

Case Study: Peano Numbers in Rust #76

Open marioortizmanero opened 2 years ago

marioortizmanero commented 2 years ago

TODO list:

Hey @SabrinaJewson, I hope you don't mind it if I write an article based on your const generics design. It's hard to actually come across usage of const generics in my experience, and I think it could make for a cool post if I can find other similar cases. I'll definitely credit you :)

Edit: I could start with a peano numbers approach, and then go with const generics arithmetics, which will surely work as well and possibly be prettier.

SabrinaJewson commented 2 years ago

Well, it’s not technically const generics, just clever use of the existing type system. But yes, go ahead, I’d be honoured :D

marioortizmanero commented 2 years ago

Ah dang, you're right. Still, sounds like a nice article for whenever I have more time :)