Functional Programming Use Case

bearophile bearophileHUGS at lycos.com
Fri Oct 10 12:09:33 PDT 2008


Paul D. Anderson:

>From that blog post:

>I use Scala to implement the interpreters and compilers because of its nifty “combinator parser” library. (This and this blog have nice introductions into Scala combinator parsers.) Why not just lex and yacc, the Model T of parser generators? My colleague is doing just that, and it is a good thing because it gives students much-needed experience with C programming. But I don't have the heart to see students suffer with pointer errors. With Scala, we can implement an interpreter for a simple language that supports arithmetic, if/else, and closures, in < 150 lines of code.<

Why use Scala for that job when you can use something modern like OMeta (like Pymeta  https://launchpad.net/pymeta )?

Bye,
bearophile



More information about the Digitalmars-d mailing list