[Jprogramming] @: and capped fork
Peter B. Kessler
Peter.B.Kessler at Oracle.COM
Fri Nov 30 23:36:43 UTC 2012
And having read that statement about parentheses, you then come to the bottom of http://www.jsoftware.com/help/jforc/common_mistakes.htm where it says
As a stopgap, you can imagine that each name's value is enclosed in parentheses
before it is substituted. This still isn't exactly right but it gets you the
right result in all situations you are likely to encounter.
which, when things don't work the way I think they should, makes me wonder if I've found one of the "unlikely" situations.
That said, I'm slowly getting better at reading J (or more consistent about using things like (5!:2)
... peter
P.S. If you are reviving http://www.jsoftware.com/jwiki/ControlNuVoc, then someone should fix http://www.jsoftware.com/jwiki/Vocabulary/ltdot, which under "Common uses" says
Floor (and Ceiling (<.)) can also be useful for testing
whether values are integers or not.
and
Floor (and Ceiling (<.)) can be useful for forcing
floating point representations of integers to be
integers in order to save memory (8 vs 4 bytes per value).
where the glyph for Ceiling should be >. in both sentences. (That just happened to be the first page I looked at, and I think I only noticed the problem because I was staring at the glyph for Floor.) Those look like copy-n-pasto's from the Ceiling page.
If someone asked me to encapsulate "whether values are integers or not", I would use
(= <.) 3 3.14 5
1 0 1
but maybe you don't want to get into hooks this soon. (Or the equivalent fork (] = <.) .)
David Ward Lambert wrote:
> The DoJ is perhaps the best technical writing I've seen,
> even having admitted that it was 2 years before I understood how to
> decipher headings conjunction and adverb headings such as
> Atop u at v mv lv rv
> Let's continue the NuVoc project.
> http://www.jsoftware.com/jwiki/ControlNuVoc
> Maybe we'll decide to emphasize what as I recall was but a mere sentence
> in the DoJ "when proverbs are substituted into a sentence it is as if
> they were parenthesized." WITH POTENTIALLY DRAMATIC CONSEQUENCE!!!!
>
>> Date: Fri, 30 Nov 2012 15:06:29 +0000
>> From: Ian Clark <earthspotty at gmail.com>
>> To: programming at jsoftware.com
>> Subject: Re: [Jprogramming] @: and capped fork
>> Message-ID:
>> <CAB2g=gAt2XZ0RNM++-YKoLNg3fewCoruhJMjCPJfMu6ur
>> +0wEA at mail.gmail.com>
>> Content-Type: text/plain; charset=UTF-8
>>
>> I too have felt the need for Really Prominent Pages (RPPs?) and I've
>> regretfully come to conclude that the only workable solution for the
>> beginner is the forum, as Dan hints. Hence certain issues will turn up
>> over and over again in the threads.
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list