Talk:Twelve statements: Difference between revisions

(Near miss?)
Line 9:
 
If you added an extra statement you could similarly assign some method of how to treat these extra 'null' statements and under that scheme work out other extended solutions to the puzzle. --[[User:Paddy3118|Paddy3118]] 04:32, 21 September 2012 (UTC)
 
: It seems pretty obvious what "there are 12 statements" or its opposite should mean, what's not obvious is in fact your rule on missing statements. If anything, it's unpythonic. Suppose statements are in a list <code>stmt[]</code> with zero-based index, #10 can be expressed as <code>all(stmt[10:12])</code>, or <code>all(stmt[10:11] + stmt[11:12])</code>, and what would Python say if <code>stmt</code> is only 11 long? (Ok, it's not really "unpythonic", it's just arbitrary.)
 
: You could choose to make nonexistent statement default to true or false, either would make a consistent rule, neither would be all that more interesting than the other. --[[User:Ledrug|Ledrug]] 08:13, 21 September 2012 (UTC)
 
P.S. I did enjoy this task and I do like the way Haskel encodes the statements. --[[User:Paddy3118|Paddy3118]] 04:32, 21 September 2012 (UTC)
Anonymous user