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?
-
-
Iterators and loops could've been built on backtracking rather than IEnumerable and could have been expressions producing collections instead of statements, yielding a more powerful version of list comprehension, thus no need for LINQ.
-
Transactions could have sanitized multithreaded imperative code, alas that effort was abandoned for lack of pre-existing code that would benefit from it.
- 1 more reply
New conversation -
-
-
F# people have been saying that about C#9 featureshttps://devblogs.microsoft.com/dotnet/welcome-to-c-9-0/ …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.