I do not agree that quoted code is a language defect.

Overuse of quoted code - like overuse of any feature - indicates a
problem, this is true. And it might even reflect a problem in the
language. But it's also possible that it's a problem with how the code
was designed. And even if it's a problem with the language that does
not mean that it's quoted code that's the problem.

(I say this after having argued the other side of this issue with Ken.
He asked me why I thought it was a problem. I quoted some stuff I had
read at him, but he did not find it convincing. After considerable
thought, neither do I.)

Thanks,

-- 
Raul


On Wed, Mar 22, 2017 at 4:33 PM, John Baker <[email protected]> wrote:
> I second Jose's feelings about quoted code. It's an indicator that something 
> is wrong with a language's syntax or reflection facilities. If j was 
> redesigned today I suspect the need for quoted code (mostly single line 
> explicits) would be dropped. I also suspect the entire notion of a "line of 
> code" would be replaced by something less arbitrary.
>
> Sent from my iPhone
>
>> On Mar 22, 2017, at 2:16 PM, Jose Mario Quintana 
>> <[email protected]> wrote:
>>
>> A quoteless J?  That is neat, I do not like quoting code particularly when
>> it leads to quotes within quotes within quotes within...
>>
>> I find the related continuations.ijs script intriguing.  Can you explain
>> what is the purpose of the continuations?  How can you use them?  Simple
>> examples would be appreciated.
>>
>>
>> On Fri, Mar 17, 2017 at 9:25 PM, 'Pascal Jasmin' via Programming <
>> [email protected]> wrote:
>>
>>> A preparser for J that autocloses parentheses, and makes embedding quotes
>>> easier.  Also has user-defined primitives.
>>>
>>>
>>> https://github.com/Pascal-J/jpp
>>>
>>> as examples,
>>>
>>> 4 timespacex: +/ i.1000
>>>
>>> is equivalent to
>>>
>>> 4 timespacex '+/ i.1000'
>>>
>>> the suggested F11 macro is pretty neat.  Runs a section of code in a
>>> file.  Unlike ctrl-R, you don't need to be at the top level line in order
>>> to run the multiline group that encloses the current line.
>>> ----------------------------------------------------------------------
>>> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to