- Joined
- Aug 17, 2022
Exactly, different languages have their own idioms.C programmer will just not expect it, because it is a thing in Python.
Suit yourself - but if you wrote it as a learning exercise, I would have thought that you'd also be interested in learning how to do it in a performant manner.I didn't say it would do nothing, I said it wasn't necessary. A handful of milliseconds isn't going to break the bank on a CLI tool for changing one filetype to another.
If you made it so that it operated on a buffer instead of a file, it'd work with mmap'd files and have other uses too (e.g. data received from a network socket).