IMO nested explicit definition such as the following would be more readable

v =. 4 : 0
u=. 3 : 0
+: y
))
x+u y
)
  2 v 3
8
On Jun 5, 2015 1:42 AM, "'Pascal Jasmin' via Programming" <
[email protected]> wrote:

> its possible to define nested multiple line expressions such as:
>
> v =. (4 : 0) (3 : 0)
> +: y
> )
> x+y
> )
>   2 v 3
> 8
>
>  A problem is that you cannot place even a comment on the same line as a
> closing ')'
>
> It would seem to be a simple modification to the parser to check for the
> first character of a line to be ')' or ':', and the parser already takes
> out any trailing blanks, so a simple useful change might be to strip out
> trailing comments (first) and (then) blanks.
>
> This would have the added benefit of including documentation that is not
> inserted into the function, which commenting what part of an expression ')'
> is closing should not be anyway.
>
> Any arguments against this change?
> ----------------------------------------------------------------------
> 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