3 ms·
If LSP can tell you the type, wouldn't it be a nice solution to just have it write it in for you?
by Y_Y 2y ago
If 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:)