I suppose we should have mention of
{\ifnum0=`}\fi
\ifnum0=`{\fi}
The brace group constructs that are endemic in packages related to tabular and related alignment constructs.
To understand these constructs it is best to start in the middle: the backtick construct `{ returns the character code of { which is 123 and in particular it is not 0 so
\ifnum0=`}\fi
is like \iffalse\fi and expands to nothing. Similarly
\ifnum0=`{\fi
Thus the first construct expands to an explicit { and the second construct expands to an explicit }
there are simpler constructs that expand to explicit braces notably
{\iffalse}\fi
\iffalse{\fi}
However as we shall see they do not work in the tabular constructs the way that is needed.
Now consider a simple halign construct (just using plain TeX for simplicity) that defines centred columns and (like LaTeX) wants to use a local definition of \\ to end the row.
\def\tabc{%
\leavevmode
\vtop\bgroup\let\\\cr
\halign\bgroup&\quad\hfil\ignorespaces##\unskip\hfil\quad\cr}
\def\endtabc{%
\crcr\egroup
\egroup}
\tabc
1 & 2 & 3\\
aaa & bbb & ccc
\endtabc
\bye
This apparently works fine and produces

Then someone decides that they want to nest tables …
Replacing the 1 in the first cell by a nested 2x2 table:
\tabc
\tabc a & b \cr x & y \endtabc & 2 & 3\\
aaa & bbb & ccc
\endtabc
This fails with the error message
! Missing } inserted.
<inserted text>
}
<to be read again>
\endtemplate
<template> \unskip \hfil \quad \endtemplate
\tabc ->\leavevmode \vtop \bgroup \let \\
\cr \halign \bgroup &\quad \hfil \i...
l.14 \tabc
a & b \cr x & y \endtabc & 2 & 3\\
The hint to understanding the error message is the \\ at the end of the line has cause \endtemplate to be read. What has happened is that the intended meaning of locally defining \\ has not happened: as soon as TeX saw the \\ (which is \let to \cr already because of the outer table, the cell of the outer table ended, the the \let then defined \unskip to be \hfil, the quad made a space, but then the cell ended in while the group started by \halign\bgroup is still open, so an error was generated.
One work-around is to nest the inner table in explicit braces:
\tabc
{\tabc a & b \cr x & y \endtabc} & 2 & 3\\
aaa & bbb & ccc
\endtabc
works as intended and produces

Sometimes you see table macros with similar requirements that nested instances be protected by explicit braces. But normally it is better to make the macros safe for nested use.
Due to the way that macro definitions are parsed, it is not possible to simply add a { to the definition of \tabc. Also the usual implicit brace \lbrace does not work here, note that the redefinition of \\ is already inside a group started by \lbrace but TeX's table cell scanner does not see that in the right way. It turns out that the construct at the start is exactly what is required. If we define the table macro as below then the nested table works as expected without the need for extra braces in the document: Once the inner \tabc is expanded in the first cell of the outer table the {\ifnum0= `}\fi is expanded and TeX will then not close the cell of the outer table until the matching end group is seen, even if it sees a & or \cr token that would normally end the cell.
\def\tabc{%
{\ifnum0=`}\fi
\leavevmode
\vtop\bgroup\let\\\cr
\halign\bgroup&\quad\hfil\ignorespaces##\unskip\hfil\quad\cr}
\def\endtabc{%
\crcr\egroup
\egroup
\ifnum0=`{\fi}}
\tabc
\tabc a & b \cr x & y \endtabc & 2 & 3\\
aaa & bbb & ccc
\endtabc
\bye
\usepackage{trace} ... \traceon:-) – Joseph Wright♦ Dec 8 '12 at 18:34\romannumeralexpansion trick fits perfectly here. Joseph, you might want to (more or less) copy-paste your blog post here;). – mbork Dec 8 '12 at 19:57