I've been away for a few days and DD drops.

One thing I immediately approve of is how this will cut down on one of my
most despised
programming language feature: "Quoted Code". I consider quoted code a red
flag
that indicates something is missing.

One of my puzzle programs defined an inline adverb like:

NB. strict row sequence adverb

srsm=. 1 : '*./"1 u/&> 2 <\"1 y'


The entire code body is in quotes. The DD equivalent


srsm=. {{ *./"1 u/&> 2 <\"1 y }}


is much nicer and unquoted.


It seems that when srsm is run inside an explicit definition it expands out
like:


srsm =.{{ *. / " 1 u / & > 2 < \ " 1 y }}


I don't mind the expansion but the extra blank after =. annoys me.


I'm looking forward to using DD.







On Tue, Oct 20, 2020 at 10:40 AM 'Pascal Jasmin' via Programming <
[email protected]> wrote:

> possibly as a result of clicking updateje command prior to running
> updatejqt command, I know get a dll error when trying to start jqt or  any
> of the update commands.  updatejqt is the process that started the dll
> errors though it appeared to complete successfully the first time.
>
>
>
>
>
>
> On Tuesday, October 20, 2020, 12:09:18 p.m. EDT, Eric Iverson <
> [email protected]> wrote:
>
>
>
>
>
> DirectDefinition is a significant new feature in J902-beta-i.
>
> DD is a new way to define verbs/adverbs/conjunctions that we think is a
> worthwhile improvement over n : ....
>
>   f=: {{x+y}} NB. f=: 4 : 'x+y'
>   2 f 3
> 5
>   2{{x+y}}3 NB. 2(4 : 'x+y')3
> 5
>
> The power of DD is clearer with multiple lines and nested definitions.
>
> For details, see:
> https://code.jsoftware.com/wiki/Vocabulary/DirectDefinition
>
> One possibly controversial decision was to use {{ and }} as they don't
> follow J word rules. The importance of DD and the better readability over
> alternatives such as (. and ). weighed in that difficult decision.
>
> Henry Rich wrote the specs for DD and did the implementation. It is now up
> to all of us to shake it out and look for improvements.
>
> ***
> J902-beta-i available for windows/macos/linux.
>
> If you already run 902-beta, then upgrade is easy:
>   load'pacman'
>   'upgrade'jpkg'jengine'
>
> A lot of changes have accumulated in 902 and now is a good time to update
> the base library and all addons.
>
> If you have not started 902 beta cycle, now is the time:
> https://code.jsoftware.com/wiki/System/Installation/J902
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


-- 
John D. Baker
[email protected]
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to