4 ms·
How does Cursive know if you're pulling out a valid keyword in a map?
by hellofunk 9y ago
How does Cursive know if you're pulling out a valid keyword in a map?
- positr0n 9y agoI doesn't know if :resource_id is in the map, but that's not a typo if that's the case. What OP meant is if you type :resuorce_id it won't autocomplete correctly so you're more likely to notice.
- hellofunk 9y agoAh, well I get that same behavior in Emacs. Doesn't always help though.
- raspasov 9y agoAlso if you type resuorce_id when referencing it will tell you that it cannot resolve the local. Of course if you BOTH destructure resuorce_id AND reference resuorce_id then you're out of luck :). That happens rarely though. One recent IntelliJ addition which is sometimes annoying but often very helpful in many cases like that is notifying you of grammatical typos: as long as you're not using obscure one off abbreviations, etc it will most likely catch "resuorce_id", "widht" and similar typos but might also complain about valid words or abbreviations in some niche domains.