Re:Vim's 400 line function to wait for keyboard input
by dustingetz on Wednesday July 15, 2015 @02:28PM
(#9893108)
I wonder why didn't the vim folks write the abstracting library?
[ Parent
| on HN ]
Re:Vim's 400 line function to wait for keyboard input
by amelius on Wednesday July 15, 2015 @02:39PM
(#9893179)
Simple. Just imagine how this code evolved. First, they started with a simple 1-liner, that took at most 5 minutes to come up with. Then another platform was added, this took another 5 minutes, etc.
Abstracting, however, would take perhaps a day of work. A full library such as libuv would have taken maybe a couple of weeks to develop.
So there you are. QED.
Re:Vim's 400 line function to wait for keyboard input
by VLM on Wednesday July 15, 2015 @03:46PM
(#9893625)
If they added libvu support, we'd have a post about "VIM's 430 line keyboard input routine" instead of a mere 400. At least for a major release or so before they could flush the legacy code. If they can.