News for hackers. Stuff that matters.
Re:Parsing can become accidentally quadratic because of sscanf by jimmaswell on Monday March 01, 2021 @12:17PM (#26305195)
It's nice being able to edit a CSV in a text editor. It wouldn't be worth it to lose that just to not have to escape some strings.
Re:Parsing can become accidentally quadratic because of sscanf by JdeBP on Monday March 01, 2021 @01:47PM (#26306507)
Text editors that can put control characters into files, and indeed PC keyboards that have a [Control] key, have been around for decades, though. For example: With WordStar, SideKick, and Microsoft's EDIT, one just typed [Control]+[P] and then the control character. M. Darkphibre mentioned VIM, but really this isn't an idea that was ever limited to just VIM and emacs.
Re:Parsing can become accidentally quadratic because of sscanf by sp332 on Monday March 01, 2021 @01:42PM (#26306403)
It wouldn't take that much effort to add a glyph in the editor for it?
Re:Parsing can become accidentally quadratic because of sscanf by afiori on Monday March 01, 2021 @12:46PM (#26305610)
more than that it is nice to edit files with a standard keyboard,
Re:Parsing can become accidentally quadratic because of sscanf by db48x on Monday March 01, 2021 @05:16PM (#26309210)
If your editor doesn't allow you to enter arbitrary characters using a standard keyboard then you need a better editor.
Re:Parsing can become accidentally quadratic because of sscanf by chousuke on Monday March 01, 2021 @06:00PM (#26309696)
The problem is not the editor, it's the human typing on the keyboard that sees , and thinks "that'll do". Using an obscure dedicated character is not going to happen.
Re:Parsing can become accidentally quadratic because of sscanf by Darkphibre on Wednesday March 03, 2021 @03:53AM (#26326127)
I guess my point was a curiosity that these control codes had become obscure, when text format interchange is so prevalent throughout computing history.
Re:Parsing can become accidentally quadratic because of sscanf by afiori on Tuesday March 02, 2021 @12:56AM (#26312293)
I do not want to learn new input methods for every program, I want a standardized compose-like functionality that allow me to write both diacritics and backticks ( a plus for the rest of unicode)
Re:Parsing can become accidentally quadratic because of sscanf by db48x on Tuesday March 02, 2021 @02:36AM (#26312809)
All operating systems have that too. Look up "Input Method Editor" in your favorite OS's documentation. See also dead keys, compose key, AltGr, etc, etc. If you think you can't edit a file because it has funny characters in it, then you're not trying hard enough.
Re:Parsing can become accidentally quadratic because of sscanf by afiori on Tuesday March 02, 2021 @02:50AM (#26312909)
I know, still there is no reasonable way* to do both common european diacritics and backticks/tilde on windows without installing third-party software.

* I find dead keys irritating beyond reason, so I do not count them as an option