4 ms·
The Plan 9 solution always felt really logical imo.
by henesy 9y ago
The Plan 9 solution always felt really logical imo.
- mjl- 9y agoi agree. too "clever", feels like a needless optimization. (optimizing for fewer keystrokes to type? or obscurity?) btw, many of the plan 9 commands use slightly different/custom option parsing. probably for historic reasons.
- mveety 9y agoNo, this isn't clever at all. Its an optimization for when you need to write a lot of little utilities that need to parse arguments. It probably came out of a day of writing tools, and after the fifth time of rewriting that while/for loop someone got pissed and made that macro. I use this macro all the time on both 9front and unix because it makes parsing arguments trivial (and I don't use long options, but that's more because I'm a plan 9/unix extremist than for any technical reasons).