[REBOL] Re: Where are the dialects?
From: fsievert:uos at: 11-Jul-2001 8:29
> Any reflections on the process having completed these?
Yes. One interesting point: When I started working on the lego-protocol, i
just wanted to do something like "motor left on" etc. to control the robot
directly. A non-dialecting sollution might look like:
lego/motors/left/power 10
lego/motors/left/start
But I decidet for dialecing:
insert lego [motor left power 10 start]
But after a while I wanted to extend the protocol to download tasks that
run on the robot itself. Now I was able to allow:
insert lego [
task 0 [
motor left power 10 start
.....
]
]
And, of course, you have variables, too.
This would look ugly if there were no dialecting. The reason is that it is
no longer commands, what I write down, but data. Method-Invocations are
more like commands, which are evaluated at invocation-time. Also they
are often used to represent data-structures. (Like building a
user-interface with java-awt). Dialecting allowes it to write down data
more elegant and more explicit.
CU,
Frank