Timeline for How would you implement an auto-correct feature for misspelled class attributes?
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 5 at 10:57 | comment | added | Matthieu M. | I would note that compilers such as Clang use the Damerau-Levenshtein distance for suggestions in diagnostics about unknown identifiers. Clang however cuts off the distance calculation at a distance of 2 and will also validate the suggestions by attempting to compile with it -- it helps avoiding suggesting a method where a field is expected, or vice-versa, selecting a field/method whose type match, etc... -- in order to rank the possible suggestions. I do agree it should remain a fix suggestion, though, and the program should not compile/continue. | |
Apr 5 at 2:07 | history | answered | Michael Homer♦ | CC BY-SA 4.0 |