> line breaks in J code -- when they are tolerated and when they are
> not. Some sort of line break convention will be needed in the book
> (2nd Edition), the reader being instructed to remove these manually
> and join-up lines.
It's pretty easy:
1) it says just "copy into ijs window and execute"
2) the phrase
".(noun define)-.LF
already explicitly removes the line breaks
after reading up to leading ")".
NB. ---- copy into ijs window and execute --------------------
".(noun define)-.LF
bridge=:(<./@(>@(2&{))({...@],(1&{...@],&.><@[),(2&{...@]-.&.><@[),3&}
....@],<@[)])^:(*...@#@(>@(1&{)))@(((((>@{...@[-.]);>@{:@[)}.@(([-.[-.
])/))@(>@(0&{)(([<....@]){.])"1(,:|.)@(/:~)@(>@(1&{)))([>@{~(>@(
2&{)@]<&(<./)>@{:@[)+.#@(>@{:@[)=#@(>@(1&{))@])])({...@],(1&{...@]-
.&.><@[),(2&{...@],&.><@[),3&}...@],<@[)])^:(*...@#@(>@(1&{)))^:_&.(({
.;}.;''"_) :.((+/@:(>./@>);])@(3&}.)))@,
)
NB. ----------------------------------------------------------
----- Original Message ----
> From: Ian Clark <[email protected]>
> To: Chat forum <[email protected]>
> Sent: Thursday, April 2, 2009 3:25:54 AM
> Subject: Re: [Jchat] At Play Guidelines and Crossing the bridge
>
> I have just verified Gilles Kirouac's assertion that the code of
> Play163 works already. I should have done so before, instead of
> assuming it couldn't possibly.
>
> So this article needs no revision. Nor much (if any) discussion. But
> if Gilles cares to take ownership of Play163 and mark it completed,
> then I propose he is credited with having revised it.
>
> I have created the page:
> http://www.jsoftware.com/jwiki/Doc/Articles/Play163 and pasted into it
> the contents of the existing Chapter 22 We'll Cross That Bridge When
> We Come To It. I've defined the preformatted J code, but not the
> in-line J. I tested the code by copy/pasting from the Wiki itself.
>
> I did try removing linefeeds from the one-line definition of 'bridge',
> which is what prompted my original remark -- the one which puzzled
> Gilles. The example works whether I do or not ... which amazes me. But
> perhaps only a J novice like me would wish to discuss the insertion of
> line breaks in J code -- when they are tolerated and when they are
> not. Some sort of line break convention will be needed in the book
> (2nd Edition), the reader being instructed to remove these manually
> and join-up lines.
>
> Ian Clark
>
>
> On Thu, Apr 2, 2009 at 6:26 AM, Gilles Kirouac wrote:
> > At Play With J/EditingGuidelines
> >
> > The last sentence of the guidelines is not clear to me:
> >
> > ===
> > Some papers I envisage as generating quite a bit of discussion on the forum
> > re
> > how best to handle them. Eg the "cross that bridge" paper.
> > ===
> >
> > I checked the code of Crossing the bridge. The code works as is.
> > The only change I could suggest is a NVV fork (1: becoming 1).
> >
> > I have not analyzed the code, but at first glance I would change
> > noting else.
> >
> > The text says that the algo is not optimal; should we change that?
> > I suppose not.
> >
> > Then what is the meaning of the guideline?
> >
> > ~ Gilles
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm