Hacker News new | ask | show | jobs
by tluyben2 2744 days ago
A proper repl seems the first step to start building such interactive/iterative tooling; F# has one so maybe that is a better start than C# for this?

C#.NET Core suffers (as far as I know) from this;

https://stackoverflow.com/questions/47394231/csharpscript-us...

I think Mono has a solution, but as far as I know .NET Core basically is unusable for scripting because of this for C# which makes the kind of scenario you want basically impossible from the get go.

It is a bit weird not more attention is given to it given so many people ache for an interactive C# environment, especially for this purpose, but also for faster iteration with Xamarin on iOS/Android etc (all of my colleagues would save a lot of time on development with this for Xamarin mobile dev especially).

If that has been fixed, there is still the lack of libraries but that and the rest of what is needed is at least not basically impossible to solve by mere mortals.

1 comments

Visual Studio has a C# REPL sice version 2015.

Then there are Xamarin Workbooks, like Swift playgrounds but for .NET.

That's not the same thing though; to be able to actually REPL a complete app or stick in an interpreter where you need it. I tried workbooks and it's more a toy (like Swift playgrounds by the way). It helps for sure, but when we are working on bigger existing apps, we want to plug in REPLs in particular places and iterate. Or generally iterate; both do not fit with the VS REPL or Workbooks.
In that regard nothing matches commercial Common Lisp environments or Smalltalk.
I agree with you, but having the Mono interpreter (which does not have the same issues) fully work for mobile (Xamarin Android/iOS) and desktop (it is with --interpreter) and web (it is with Blazor) would make life easier for this kind of mainstream development.