[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Switch/Case statements revisited
- From: Norman Ramsey <nr@...>
- Date: Sat, 10 Nov 2007 19:48:22 -0500
> Lua is a very good language for writing DSLs (or 'little languages'
> as the old-style Unix people called them).
With respect, I find Lua not such a good language for writing DSLs.
Haskell is a very good language for writing DSLs; compared to Haskell,
I find Lua barely adequate for these sorts of experiments.
I use Lua lots for all sorts of other things, but I really miss
Haskell's lightweight syntax for function definition, function
application, and infix operators---plus the power of lazy evaluation.
And I miss Haskell's type system! When you start designing languages,
a type system can be enormously helpful. Unfortunately, retrofitting
some static typing onto Lua's existing design turns out to be a hard
problem.
Norman