@Jose
I was just about to tell Don that.

IMO this is a clumsy way of adjusting the behavior of a script at load time.
It will trip up a beginner.

This is one of the first alterations I'd make. But I'm not sure what's the
best way to do it.
What first comes to mind is…

(1) ask user to enter:
   CamelCase_z_=: 1
before loading the script.

(2) (my preferred)
Have alternative scripts, e.g.
   load 'general/lowercaseprimitives'        NB. a trivial script which
loads: general/primitives
   load 'general/CamelCasePrimitives'     NB. makes the LIT adjustment, by
any user-transparent way.

This problem (of loading same script with different options) turns up
frequently for me.
What's the best-practice way of doing it, which is likely to be instantly
understood by a beginner?


On Mon, Mar 5, 2018 at 4:11 AM, Jose Mario Quintana <
jose.mario.quint...@gmail.com> wrote:

> The addon script has the names as you described.  However, it contains the
> lines,
>
> NB.  Place  NB. on next line to have CamelCase form
> LIT =: tolower each LIT
>
>
>
>
>
> On Sun, Mar 4, 2018 at 2:58 PM, Brian Schott <schott.br...@gmail.com>
> wrote:
>
> > Ian,
> >
> > I like your ideas regarding general/primitives . I just did a load of the
> > addon and was surprised that they are lowercase. My memory suggested they
> > were uppercase initial letters like the Vocabulary. But I never use them,
> > so take what I say with that in mind. I was please to see that in jqt an
> F1
> > tap when the cursor is near the primitive, or near the spelled-out
> > primitive, took me to the Vocabulary page. I was expecting to be
> delivered
> > to the Dictionary page, though. Maybe that's something I have not
> > configured properly on my Mac. Another disappointment on my Mac was that
> > shift+F1 did not take me to NuVoc (again, maybe a config issue).
> >
> > And, all of F1 access leaves out jconsole and jhs as far as I can tell.
> So,
> > I suspect new users are steered to jqt.
> >
> > I personally lean toward jconsole in much of my J use, btw.
> >
> >    JVERSION
> > Engine: j806/j64/darwin
> > Release: commercial/2017-11-06T10:20:33
> > Library: 8.06.09
> > Qt IDE: 1.6.2/5.6.3
> > Platform: Darwin 64
> > Installer: J806 install
> > InstallPath: /users/brian/j64-806
> > Contact: www.jsoftware.com
> > ----------------------------------------------------------------------
> > 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

Reply via email to