3 ms·
> auto lovers will say that the IDE will resolve the types for you if you really care, but would someone please think of our poor Vim & Emacs users? This poor
by lawn 2y ago
> auto lovers will say that the IDE will resolve the types for you if you really care, but would someone please think of our poor Vim & Emacs users?
This poor Neovim user also has LSP with inline hints, hover and help like IDEs.
Vim/Emacs aren't just the dumb text editors anymore.
- noname120 2y agoMaybe the poor Vim & Emacs users should think about other developers that have better things to do than catering to their special needs.
- yosefk 2y agoanyone with no time to properly setup an IDE before delving into some code to quickly find something out becomes that "vim/emacs user". Certainly in C++ you can't make sense of the code without the right defines and include path and configuring the IDE to actually understand C++ code is not that quick at times (and that's before we get into things like Qt which essentially add their own language features)
- Y_Y 2y agoIf LSP can tell you the type, wouldn't it be a nice solution to just have it write it in for you?
- throwaway290 2y agoThings like that exist in neovim:) but I'm curious if LSP can write it for me why not just have compiler infer it?
- ginko 2y agoSo you can figure out the type of a variable at a glance as you read the code?
- deleted 2y ago[deleted]
- throwaway290 2y agoIf it's not so obvious that it requires to be stated then it has to be selected from a list suggested by IDE and critically inspected for correctness Do you find it faster to context switch to that mode from typing flow? I don't always
- Y_Y 2y agoMaybe you're not going to be the only one reading the code.
- throwaway290 2y agoCode is read more often than written but dynamically typed languages exist:)
- cmiller1 2y agoI think a better argument here is that we can't always assume code will be read in an IDE/code editor at all. There is value in being able to quickly glance at what some code is doing in your browser without downloading it from a repo, or in a preview view offered by a GUI file browser, or any number of lowest common denominator scenarios.