Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes I get that its a basic requirement for some people. I am asking why.




Today's usage from what edits I can recall:

- I wanted to edit the visibility (pub -> pub(crate)) of most but not all functions in a class.

- I changed a macro to not require commas in a list of items it took in as input.

- I changed a function to deal with utf-8 codepoints instead of bytes, so I wanted to rename all uses of "byte" to "char".

Basically, localized find and replace, with a bit of flexibility.


Got it. Thanks for sharing.

A use case I have also is the creation of a switch case from a list of enums

Nice one!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: