▲ | giveita 4 days ago | |||||||
My grep may not work on your settings for the same code. This becomes an issue with say CI where maybe I add a gate to check something with grep. But whose format do I assume? My local (that I used to test it locally) or the canonical (which means I need to switch local format to test it)? | ||||||||
▲ | brabel 4 days ago | parent | next [-] | |||||||
You really rely on grep on CI? How fragile is that ?! This is a good argument for storing non-text. Grepping code is laughably unreliable. The only way to write things like that reliably is by actually parsing the code and working in its AST. Working in text is like writing code in a completely untyped language. It can be done, but it’s beyond stupid for anything where accuracy matters. | ||||||||
▲ | treadmill 4 days ago | parent | prev [-] | |||||||
You're misunderstanding the idea I think. You would use the format on disk for the grep. "Your format" only exists displayed in your editor. | ||||||||
|