On Thursday, February 9, 2012 7:15:57 PM UTC+1, clay wrote:
>
> Also, sure you can do some functional/immutable programming in C#, but 
> that's really not the strength of C# or a good choice for more serious 
> functional/immutable programming. Even if you prefer pure Microsoft 
> branded tech, F# is far better for that. 
>

True, but C# truly caters to a hybrid approach, functional when you 
can, imperative when you must (along with static when you can, dynamic when 
you must).
 

> You can also do functional/immutable style designs in Java. Not as 
> elegantly as you could in Scala/Haskell/Clojure/OCaml/F#, but my team 
> is doing exactly that. 
>

Since Java does not support yield in lazy iterators (as C# does), how to 
you push/pop the state?

FYI, here is the Java code that I used: 


Pretty much identical to the code I wrote. :)

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/javaposse/-/YxFgrtY-Ft0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to