Talk:Longest string challenge: Difference between revisions
Content added Content deleted
(→Icon uses boolean datatypes: Loose language?) |
|||
Line 55: | Line 55: | ||
==Icon uses boolean datatypes== |
==Icon uses boolean datatypes== |
||
'move(1)' must return something coerced to a boolean for the if statement/expression to work on its return value. In fact, their are more conditionals, so things are getting coerced to booleans there too. I think the problem statement could prove tough to tie down ;-) <br> --[[User:Paddy3118|Paddy3118]] |
'move(1)' must return something coerced to a boolean for the if statement/expression to work on its return value. In fact, their are more conditionals, so things are getting coerced to booleans there too. I think the problem statement could prove tough to tie down ;-) <br> --[[User:Paddy3118|Paddy3118]] |
||
Yet more. From the Icon comments: |
|||
:''move(1) - succeeds/fails ...'' |
|||
So move is a conditional itself. Which is not allowed. So the Icon example does not meet the conditions of the task statement!? |
|||
The language of the task is very loose and seems to be set up to dazzle students unwilling to argue a point when learning a new language. --[[User:Paddy3118|Paddy3118]] 19:32, 13 August 2011 (UTC) |