3 ms·
When I read this statement, I was thinking of Pascal style comment directives, e.g. { field1: 'hello', //#if (protocol_version>3) field
by beagle3 10y ago
When I read this statement, I was thinking of Pascal style comment directives, e.g.
{
field1: 'hello',
//#if (protocol_version>3)
field2: 'hello',
//#endif
/* #charset utf-8 */ field3: 'world world' /* #charset default */
}
Which falls into neither "comments on top" nor "2 stage parsing". Unlike the C preprocessor, which "eats" whole lines starting with #, Pascal used a {$directive arguments} inline comment style.