3 ms·
Great, so lots of mixed invisible characters in the same line. Yea, that's never caused any problems, cough makefiles, cough python, ... Fortunately all the pr
by greggman3 5y ago
Great, so lots of mixed invisible characters in the same line. Yea, that's never caused any problems, cough makefiles, cough python, ...
Fortunately all the projects I work on do the proper thing and use spaces ;)
React (FB) says they use spaces: https://github.com/airbnb/javascript#whitespace https://github.com/airbnb/javascript#whitespace (react links to the airbnb style guide)
Google: is usually spaces, https://google.github.io/styleguide/jsguide.html#formatting-block-indentation https://google.github.io/styleguide/jsguide.html#formatting-...
Apple: https://llvm.org/docs/CodingStandards.html#whitespace https://llvm.org/docs/CodingStandards.html#whitespace, https://webkit.org/code-style-guidelines/#indentation-4-spaces https://webkit.org/code-style-guidelines/#indentation-4-spac..., Swift (load xcode, see it inserts spaces in default code projects and with reformatting in xcode, ...)
Mozilla: https://firefox-source-docs.mozilla.org/code-quality/coding-style/coding_style_cpp.html#header-files https://firefox-source-docs.mozilla.org/code-quality/coding-..., rustfmt defaults to spaces: https://rust-lang.github.io/rustfmt/?version=v1.4.38&search=#hard_tabs https://rust-lang.github.io/rustfmt/?version=v1.4.38&search=...
Python: https://www.python.org/dev/peps/pep-0008/#tabs-or-spaces https://www.python.org/dev/peps/pep-0008/#tabs-or-spaces
PS: I know some projects use tabs (go, linux) for example. I don't work on those :P
- Dylan16807 5y ago> Great, so lots of mixed invisible characters in the same line. Yea, that's never caused any problems, cough makefiles, cough python, ... Of all the ways you could object, I feel like listing makefiles and python might make the least sense. Makefiles require tabs and python has zero problems using tabs for indentation and spaces for alignment. In fact, python will make it harder to accidentally indent a line wrong than almost any other language. I'd just say people are more likely to screw up, or something like that. > PS: I know some projects use tabs (go, linux) for example. I don't work on those :P Linux requires 8 space indentations so it's the worst of all worlds.