Rene Rivera wrote:
> Joel de Guzman wrote:
>> Rene Rivera wrote:
>>> Joel de Guzman wrote:
>>>> Rene Rivera wrote:
>>>>> Joel de Guzman wrote:
>>>>>> Will it help if we allow:
>>>>>>
>>>>>> [section One]
>>>>>> [    section Sub One]
>>>>>>
>>>>>> ...some stuff here...
>>>>>>
>>>>>> [    endsect Sub One]
>>>>>> [endsect One]
>>>> We can make it work the way you want it if we agree that
>>>> code blocks *cannot* have '[' as its first character. I think
>>>> there's no problem with that in C++, nor python. I'm not sure
>>>> about other languages.
>>> Didn't someone already suggest that '[' would be reserved under all 
>>> contexts, and hence the only way to get it in code blocks would be 
>>> escaping it?
>> Oh no! Code blocks should be an exception as it uses a different
>> grammar (that of the host language). If not, then we can't write
>> simple code like:
>>
>>      int foo(std::vector<int>& v)
>>      {
>>          vec[1] = vec[6];
>>      }
>>
>> I strongly object to that. Would you rather prefer:
>>
>>      int foo(std::vector<int>& v)
>>      {
>>          vec\[1\] = vec\[6\];
>>      }
>>
>> ?
> 
> Good point :-) Would one then be able to get a literal '[' as the first 
> char by escaping it?

I think that's reasonable behavior in that case.

Regards,
-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to