Y
Hacker News
new
|
ask
|
show
|
jobs
by
c3534l
3261 days ago
Why not use an example that actually works?
1 comments
OJFord
3261 days ago
That paragraph confused me too, but then I realised what he meant, felt the same as you, but still couldn't think of anything on the spot that would work other than:
set(value) { count = 0 while count != value { increment() } }
(~~may not be~~ probably isn't valid Dart)
link
krallja
3261 days ago
That's an infinite recursion, because increment() is going to call back to set()
link
OJFord
3261 days ago
Heh, true. So, examples are hard. :)
link