Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If LSP can tell you the type, wouldn't it be a nice solution to just have it write it in for you?


Things like that exist in neovim:)

but I'm curious if LSP can write it for me why not just have compiler infer it?


So you can figure out the type of a variable at a glance as you read the code?


If 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


Maybe you're not going to be the only one reading the code.


Code is read more often than written but dynamically typed languages exist:)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: