3 ms·
> But it does have a much simpler grammar than any language (save Forth). And that's why I prefer Forth syntax But yes, you're always going to have a grammar
by raverbashing 13y ago
> But it does have a much simpler grammar than any language (save Forth).
And that's why I prefer Forth syntax
But yes, you're always going to have a grammar. Albeit simple, you need a tokenizer/parser for lisp and forth. It's simple, but it is there.
Computers don't know what 2.345 or "blah" means, we still need a way of inputting this in a friendly way.
- draegtun 13y agoAnother language with a simple grammar and partially inspired by Forth & Lisp is Rebol... $ rebol >> price: 99 == 99 >> either price > 100 [10] [5] == 5 >> ;;; and even more interesting is... >> ten: [10] == [10] >> five: [5] == [5] >> either price > 100 ten five == 5
- vezzy-fnord 13y agoI remember trying REBOL years ago, but only for a short while and I didn't see it as much of an improvement over Lisp. Should I revisit it again some day?
- draegtun 13y agoI wouldn't view Rebol as a Lisp++ but rather something that's inspired by but interestingly different yet simpler to grasp to Lisp. > Should I revisit it again some day? I'm probably not the best person to ask here because I've only come across Rebol in last 12 months. I've had great fun playing with it and have used it for a few small scripts/projects. The current pros would be: - Rebol3 is now opensourced (since 12-12-2012) - Rebol3 is faster than Rebol2 (in my simple tests about twice as fast) & with smaller footprint. - Rebol3 comes with some design improvements, for eg. 64-bit integers, module system, async schemes & more. However the cons are: - Rebol3 still in alpha/beta development. - So not all features of Rebol2 are (yet) present in Rebol3. - Rebol3 GUI is only available for Windows & Android at this moment. So depending on your use case then you may find yourself still needing to use Rebol2.