Talk:Truth table: Difference between revisions

(→‎Incorrect example: new section)
 
(4 intermediate revisions by 2 users not shown)
Line 24:
 
Why is the Déjà Vu example incorrect? AFAIK, it does exactly the same thing as the D and Go examples. --[[User:Gvx|Gvx]] ([[User talk:Gvx|talk]]) 14:35, 21 November 2013 (UTC)
 
:Hi Gvx, I took a look and it seems that all three are incorrect for the same reason. You could look at the history of the page and find what the first few examples do, but in this case I think the task description does state that it wants the input of an expression to be parsed and evaluated. Some languages have that built-in; for others there is the hint of the mention of reverse-polish or infix evaluators.
:If marked incorrect (or left out completely), it signals that a correct examples is needed. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 08:00, 22 November 2013 (UTC)
:[[Parsing/RPN calculator algorithm|This]] might help. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 08:06, 22 November 2013 (UTC)
::I agree with what Fwend said below. It seems to me that this is actually two tasks: Parsing a boolean expression and Printing a truth table. There are several other tasks on RS that are closely related, like [[Queue/Definition]] and [[Queue/Usage]] — and I think it makes more sense to split this one than the queue task. I'll rewrite the Déjà Vu example if we can't convince you. :) --[[User:Gvx|Gvx]] ([[User talk:Gvx|talk]]) 21:17, 5 December 2013 (UTC)
 
==Incorrect title?==
We could also mark the title of this task as incorrect, because what on earth has building a (not very robust) parser have to do with truth tables.[[User:Fwend|Fwend]] ([[User talk:Fwend|talk]]) 14:55, 22 November 2013 (UTC)
:Most of the work might be in creating the parser if your language does not come with a suitable one. Other languages make that easy. The task title seems accurate to me? --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 05:40, 23 November 2013 (UTC)
Anonymous user