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?
-
-
Curious as have had the discussion recently with C#8 index and ranges features, which are exclusive. Inclusive is more understandable when written 'A'..'Z'; however when you use with other operators (.IndexOf to find delimiter) then exclusive flows better https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-8#indices-and-ranges …pic.twitter.com/tTq6ZCYc1a
-
There is a very frustrated functional logic language trapped in C# wanting to get out! All of the pattern matching features would've fallen out of unification. Null folding operations would have fallen out if boolean-producing operations were instead potentially failing.
- 3 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.