Yeah I'm in the same boat. I've been spending a bit of time looking into some of the big and popular Typescript projects. But something's not sinking in and I could use a intermediate/advanced guide.
4 karma · joined July 27, 2014
Otherwise looks like a cool project, keep up the good work!
Implemented a scheme in my undergraduate days (in C), had a small love affair with LISP in general (but none with girls ... probably related).
I'll be opinionated here:
It's not readable. It really isn't. You have to be in the thick of it to see the trees. Idiomatic doesn't cut it.
Operator heavy Haskell is more readable. Most of the modern functional languages read closer to the spoken word.
I'd rather be presented with a legacy OO code base, than an LISP one if the LOC was anything significant.
I hope I don't come across as disgruntled, I am but a mere man, and I know my limits.
And still have fond memories of bedding LISP.
using System;
using System.Text;
namespace Goal
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(G("al"));
Console.WriteLine(G()("al"));
Console.WriteLine(G()()()()()("al"));
}
static StringBuilder accumulator = new StringBuilder();
delegate dynamic GoalDelegate(string s = "o");
static dynamic G(string s = "o")
{
switch (s)
{
case "o":
accumulator.Append("o");
return (GoalDelegate)G;
case "al":
string result = "G" + accumulator.ToString() + "al";
accumulator.Clear();
return result;
default:
return null;
}
}
}
}