jsoftware / jsource

J engine source mirror
Other
657 stars 90 forks source link

Change ;: dyad #39

Open tangentstorm opened 3 years ago

tangentstorm commented 3 years ago

I would like to propose two changes for the ;: dyad.

My motivation in both cases is compactness and efficiency. Of course, we have other ways of reaching these results. We could, for example, re-implement ;: in J. However, ;: is useful because of its compactness and efficiency. The benefits would be visual, as well as mechanical (especially on 64 bit systems). I have attached a proposed update to the dictionary

File:Proposed-d332.htm. (file was missing from wiki - ed)

-- @rdm<2009-06-03T19:33:10Z)>

tangentstorm commented 3 years ago

ew when j = _1 instead of raising error, should emit an empty box in output code 0, nothing in output code 1, (i, 0) in output codes 2 and 4.

Benefit would open up classes of FSMs where tag/bracket delimited data can be output as pre-open/inside/post-close(and pre-open next) such that all within-tag/bracket (inside) content is in boxes at odd numbered indexes.

-- Pascal Jasmin 01:07, 12 June 2017 (UTC)