4 ms·
It is not intended to be Python compatible, it merely has indentation based syntax that is similar. The cases where it differs from Python are actually for goo
by Aardappel 8y ago
It is not intended to be Python compatible, it merely has indentation based syntax that is similar.
The cases where it differs from Python are actually for good reason: unlike Python that only has built-in control structures, here any function can look like if/for/while if it takes a lambda body.
- andrelaszlo 8y agoThis seems like a cool way to make an ad hoc dsl. I'm not a game programmer but I imagine it could be useful.
- stcredzero 8y agoThis seems like a cool way to make an ad hoc dsl. I'm not a game programmer but I imagine it could be useful Smalltalker here. Being able to pass in lambdas very casually is a great way of producing an ad hoc DSL. Imagine a custom control structure which does a database transaction. Just implement a function!
- Aardappel 8y agoYup, this style of programming I use all the time in Lobster.
- yellowapple 8y ago> unlike Python that only has built-in control structures, here any function can look like if/for/while if it takes a lambda body That's absolutely fantastic. I've had to do a lot more Python programming for work, and I've been thoroughly disappointed by Python's lack of support for custom blocks/structures like that (contrast with Ruby or Elixir, where any function can take a do ... end, or with Tcl where "blocks" are just strings).
- vanderZwan 8y agoSo is it a bit like Rebol (or Red, or even Joy if we pretend RPL is not a significant difference), or is it a very different style of implementation?