Here's a neat test of programming language expressiveness: Can you write a function PrintXY taking an integer n>=0 that prints all strings of length n containing only the characters 'X' and 'Y'? Can you do it without recursion, and without assuming n<=64? Is it readable?
-
-
This particular programming challenge is just a funny example. You could also write if(as[i:int]==3) then... else ..., which binds i to the first element of the array as that equals 3, or takes the else-branch if none. Functional logic gives you finite search everywhere.
-
sounds more like sugar to me. tbh as a systems programmer, none of these make things particularly clearer to me. i was hoping this multidimensional range building business could be a solution to parallelization semantics that i'm not seeing yet, but it's just hiding a lot.
- 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.