Talk:Short-circuit evaluation: Difference between revisions
Content added Content deleted
(→Why a draft task?: Not any more.) |
m (→Why a draft task?: spelling) |
||
Line 1: | Line 1: | ||
==Why a draft task?== |
==Why a draft task?== |
||
A comment in [http://rosettacode.org/wiki/Rosetta_Code:Village_Pump/Request_a_programming_task#Unsorted here] (look for ''shortcutting''), thought that the task would most likely not be written in a neutral manner. I've tried to write a task that allows each language, whether it has short-circuit evaluation or not, to solve the problem idiomatically. <br> |
A comment in [http://rosettacode.org/wiki/Rosetta_Code:Village_Pump/Request_a_programming_task#Unsorted here] (look for ''shortcutting''), thought that the task would most likely not be written in a neutral manner. I've tried to write a task that allows each language, whether it has short-circuit evaluation or not, to solve the problem idiomatically. <br> |
||
I saw the comments on the Icon solution, for example, which makes me think that the task could soon |
I saw the comments on the Icon solution, for example, which makes me think that the task could soon lose the draft status? --[[User:Paddy3118|Paddy3118]] 23:59, 24 July 2010 (UTC) |
||
: I removed the draft status as the examples seem to cope (another example is Pascal where some compilers have it and some do not). |
: I removed the draft status as the examples seem to cope (another example is Pascal where some compilers have it and some do not). |
Revision as of 15:04, 25 July 2010
Why a draft task?
A comment in here (look for shortcutting), thought that the task would most likely not be written in a neutral manner. I've tried to write a task that allows each language, whether it has short-circuit evaluation or not, to solve the problem idiomatically.
I saw the comments on the Icon solution, for example, which makes me think that the task could soon lose the draft status? --Paddy3118 23:59, 24 July 2010 (UTC)
- I removed the draft status as the examples seem to cope (another example is Pascal where some compilers have it and some do not).
Error in task?
The problem states:
x = a(i) and b(j) y = a(j) or b(j)
But the only example is written as:
x = a(i) and b(j) y = a(i) or b(j)
Either the definition of the first example is wrong. I'm guessing the task description but ... --Dgamey 17:50, 24 July 2010 (UTC)
- You are right of course. Hopefully fixed now, thanks. --Paddy3118 23:43, 24 July 2010 (UTC)