Talk:Brace expansion: Difference between revisions

m (add sig)
Line 16:
:::: TimToday is right, I did intend for fault-tolerant parsing (as opposed to throwing an error on malformed input) to be a core aspect of this task (see the "Motivation" section). Of course if it's an unreasonable requirement (e.g. making the task too big/difficult) it could be dropped, but I think that would make the task much less interesting (and there are already many other Rosetta Code tasks that deal with strict parsing). Note that I managed to implement all the requirements in the Perl solution, with plain while loops and a non-backtracking regex (which could even be replaced by low-level 'substr' operations without much difficulty), so it should be possible in Python as well. --[[User:Smls|Smls]] ([[User talk:Smls|talk]]) 10:17, 26 January 2014 (UTC)
:: Hm yeah, I guess requiring solutions to demonstrate the four test cases (with a listing of the actual output), instead of some "toy output", might make sense after all (even if it will make the page very long once there are many implementations). Btw, that Perl 6 solution looks pretty sweet... :) --[[User:Smls|Smls]] ([[User talk:Smls|talk]]) 10:16, 26 January 2014 (UTC)
::: I updated both the task description and the Perl solution accordingly now. --[[User:Smls|Smls]] ([[User talk:Smls|talk]]) 10:57, 26 January 2014 (UTC)
Anonymous user