3 ms·
What I've felt with crystal is that I find it an immensely practical language. Maybe that stems from the compiler being written in crystal. The question is, ho
by stcredzero 10y ago
What I've felt with crystal is that I find it an immensely practical language. Maybe that stems from the compiler being written in crystal.
The question is, how easy is it to make syntax-driven tools? One thing that Ruby never did quite as well as Smalltalk was having low cost of entry for creating language parsing tools on the language itself. (At one time, there were multiple online study groups of multiple people trying to parse Ruby working for over a year. With Smalltalk, you can start hand-coding a top-down parser in the morning and be mostly done in the afternoon.)
Most of all, the type system gets out of your way and usually only shows itself when you're making a mistake.
Sounds ideal!
- RX14 10y ago> The question is, how easy is it to make syntax-driven tools? You can actually require the lexer and parser portions of the compiler in crystal code, and get an AST from a file relatively easily. The crystal compiler then has tools for easily walking the AST.