4 ms·
Formatting code according to a given style is a much easier task than what Copilot does.
by kleiba 5y ago
Formatting code according to a given style is a much easier task than what Copilot does.
- alpaca128 5y agoApparently not that easy[0]. Depending on one's priorities formatting/pretty-printing code can be trivial or very difficult. Doing that dynamically based on a user's individual preferences or even their existing codebase's style is probably much harder. I don't doubt Copilot is also quite a problem to solve, most likely indeed harder, though in that case at least there's an abundance of training data. [0] https://news.ycombinator.com/item?id=22706242 https://news.ycombinator.com/item?id=22706242
- fabiospampinato 5y agoIt depends what you mean by "given", I can't write a million line document describing exactly what kind of style I want it to use, the formatter must learn the style on its own from examples. I agree that something like that would be much easier to make in theory, hence why I'm suggesting it since maybe it could be made ~perfectly, which Codepilot isn't (we haven't unlocked AGI yet).