|
|
|
|
|
by wtetzner
4798 days ago
|
|
Not sure what being a static language has to do with having a REPL. Haskell and OCaml are static languages, and they both have REPLs. Scala too. Also, if Java had just gotten a REPL, I can see someone saying "If this would have come 15 years ago then maybe I would have been excited." I can't speak for dev360, but the way I read his comment makes me think that what he meant is that he's moved on to other languages at this point, so C# finally getting a REPL isn't really that interesting anymore. |
|
Saying 'haskell and ocaml are static and they have REPLs' is totally missing the point; the way you write code and express types in those languages is different. C# is one of those 'fully formed type with methods' languages, where you have to define an entire type and its members up front. Not particularly REPL-friendly, especially in 2.0.
Now, with the newer features added in C#4 and later versions of the language, it's possible to actually use it in a REPL because you can create instances of anonymous types and write lambdas with result/argument type inference and variables with inferred types, and you can define classes in multiple stages ('partial' classes).
A Java REPL would have all these same problems, even now. (Or did lambdas ship?)