I attempt to break down a Rebol View into a Forth style 'divide and conquer' word set, to optimize reading, organize, make business logic stand out.
1) Is there a way to simplify the following code ?
--R E B O L []
--
--Result: "Test"
--
--field1.Process: [
-----alert join "You typed: "
-----Result: field1/text
-----]
--
--field1.Initialize: [do [field1/text: Result]]
--
--field1.Declare: compose/deep [
----field1: field
----[(field1.Process)]
----(field1.Initialize)
---]
--
--block: -compose [
----(field1.Declare)
----field
----field
----]
--
--view layout (block)
2) Layout block structure being
-field: field-type [field-process] -[field-initialize]
I seek to optimize notation
-field1.Process: []
-field1.Initialize: [do []]
-field1.Declare: compose/deep [
---field1: field
---[(field1.Process)]
---(field1.Initialize)
--]
towards minima
-field1.Process: []
-field1.Initialize: []
-
-field1.Declare: compose/deep [
---field1: field
---[field1.Process]
- -[field1.Initialize]
--]