Talk:Brace expansion: Difference between revisions

Line 59:
:::The spec comes at it from a slightly different angle, but it evaluates to the same thing: "''The rules for parsing/expanding the whole string also apply recursively to each alternative of an alternation group''" - which, together with the given examples, should be unambiguous.
:::--[[User:Smls|Smls]] ([[User talk:Smls|talk]]) 21:28, 31 January 2014 (UTC)
 
:::: This line of thinking scares me. It seems to me that you cannot reliably identify the outer layer, in the general case, until after you have identified the inner layers.
 
:::: That said, perhaps you are suggesting a system where we first identify the nesting, from the inside out, and postpone expansion until all brace expansions have been identified. That would be relatively straightforward to implement and would explain the stack data structures I've noticed in other implementations. Still, if that is the requirement I would like it to be stated explicitly rather than implicitly or through a reference implementation. --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 21:34, 31 January 2014 (UTC)
6,962

edits