4 ms·
How does it deal with languages with significant whitespace? Can it format Python without breaking it?
by lubomir 10y ago
How does it deal with languages with significant whitespace? Can it format Python without breaking it?
- jurgenv 10y agohaven't tried, but if you train it using only correct Python I bet it can only produce correct Python. Have to check this out to be totally sure of the absence of a weird corner case.
- parrt 10y agoA small followup to Jurgen's post. Python's indentation is meaningful so any change to it would mean we changed the program. In that sense, python is not a good target for this tool. Also, as a simple implementation expedient for this version, I assume that '\n' is not significant.