What expl3 functionality, if any, will break if I redefine the space character to have catcode 10?
\ExplSyntaxOn
\char_set_catcode_space:n {32}
...
% Does everything work as before?
...
\ExplSyntaxOff
What expl3 functionality, if any, will break if I redefine the space character to have catcode 10?
\ExplSyntaxOn
\char_set_catcode_space:n {32}
...
% Does everything work as before?
...
\ExplSyntaxOff
Things will tend to go silently wrong with little warning. The functions themselves are of course unaffected by the catcodes in the document but the spaces in the document are interpreted differently so code fragments expecting the normal context will break.
Gives me an excuse to break some of egreg's code. Suppose you had copied some code from
https://tex.stackexchange.com/a/24067
\documentclass{article}
\usepackage{expl3}
\begin{document}
\ExplSyntaxOn
%\catcode`\ =10\relax
\cs_new:Npn \exampleone:nn #1 #2 {[#1 #2]}
\cs_new:Nn \exampletwo:nn{#1 #2}
\texttt{\cs_meaning:N \exampleone:nn}\par
\texttt{\cs_meaning:N \exampletwo:nn}\par
\exampleone:nn{aa}{bb} cc dd
\ExplSyntaxOff
\end{document}
Produces
[aabb]ccdd
which is the intended result here.
If you uncomment the catcode setting then you get
[aabb cc]dd
which may or may not be what you expect, depending what your expectations are.
kantlipsumI use\char_set_catcode_space:n {`\ }when the Kantian paragraphs are defined; changing spaces and newlines to~would be cumbersome. – egreg Oct 10 '17 at 15:37expl3will work the same? How aboutxparse? – Evan Aad Oct 10 '17 at 15:38\cs_new:Npn \ea_foo:nn #1 #2 {...}, for instance, because spaces would be significant. That's an instance of what “take care of unwanted space” referred to. – egreg Oct 10 '17 at 15:45\ifnum\catcode32=10 yes\else no\fi– David Carlisle Oct 10 '17 at 15:57expl3(might even predate David's involvement!) – Joseph Wright Oct 10 '17 at 16:15