Earlier quoted context omitted.
There are a few hedge funds that are quite happy to contribute open-source to the world. Blue Mountain Capital for example; https://github.com/BlueMountainCapital One of their projects is Deedle; an F#/C#-equivalent of the Python 'Pandas' data frame package. Which would in fact make a nice complement to CShell I imagine. Jane Street would be another choice: http://janestreet.github.io/ Their work on OCaml is currentl…
wow, didn't know that. thanks for putting together that list - maybe we should start a list somewhere where people can add, this is definitely super interesting.
CShell: A simple, yet powerful, C# scripting IDE
71–80 of 90 posts
Re: CShell: A simple, yet powerful, C# scripting IDE
#72Re: CShell: A simple, yet powerful, C# scripting IDE
#73Earlier quoted context omitted.
Type inference in C# with the var keyword doesn't work like a dynamic language like javascript. It works by simply using var as a placeholder for whatever type the right hand side returns, which is determined at compile time.
So the type depends upon the initial values, which might not be representative of your full intent? A list of strings doesn't guarantee you won't want later to put something else in there. I guess you'd just have to declare it explicitly in that case.
Re: CShell: A simple, yet powerful, C# scripting IDE
#74Re: CShell: A simple, yet powerful, C# scripting IDE
#75Re: CShell: A simple, yet powerful, C# scripting IDE
#76I'm getting "(35,0): error CS1525: Unexpected symbol `static'" trying to run Tutorial.csx (when MyMath is uncommented), whether running the entire script or just the class and the MyMath.Fibonacci call alone, by Run Selection (then it's "Unexpected symbol `MyMath'"). public static class Foo { public static string B; } Foo.B = "5"; doesn't work either ("Unexpected symbol `Foo'"). I really don't get how to use that thi…
For the MyMath example you'd just select the lines for that class, press Alt+Enter. And then run: > MyMath.Fibonacci(12);
With your example, you would enter following in the REPL: > public static class Foo { public static string B; } > Foo.B = "hi" > Foo.B hi >
Re: CShell: A simple, yet powerful, C# scripting IDE
#77First of all, let me say this is something I've wanted for a while, so good job and thank you to the author. When I try the Tutorial.csx, I can't get this snippet to work: static class MyMath { public static long Fibonacci(long n) { //anything more than 48 will result in a stack overflow. if (n >= 48) throw new ArgumentException("Enter a number less than 48"); if (n == 0) return 0; if (n == 1) return 1; return Fibona…
Anyhow what you need to do is simply select line 35-45 with your cursor, then press Alt+Enter.
And then, after that, execute MyMath.Fibonacci(12);
Re: CShell: A simple, yet powerful, C# scripting IDE
#78I guess I'm old. My first thought was http://en.wikipedia.org/wiki/C_shell
Re: CShell: A simple, yet powerful, C# scripting IDE
#79Why don't people do a quick search before naming things: http://en.m.wikipedia.org/wiki/C_shell
Re: CShell: A simple, yet powerful, C# scripting IDE
#80They should've just skipped that and made this. Hot damn, neat!