Re: [Jprogramming] Fwd: Convention to stop loading a script

2018-05-09 Thread bill lam
IIRC visual studio c# ide won't show any syntax coloring for codes guarded by #if condition when the condition is set to false in project. therefore I think commenting using ide block comment or put inside noun definition should already work are good enough even without any syntax coloring. On Thu

Re: [Jprogramming] Fwd: Convention to stop loading a script

2018-05-09 Thread Ian Clark
@Bill - I've been playing with this technique myself. Besides executing 13!:8, executing '@@' in the script will crash the verb: load, and a line of @@@… makes a visual signpost. The resulting error condition can be suppressed by using (load :: haltload). Even though load has notionally "failed", a

Re: [Jprogramming] Fwd: Convention to stop loading a script

2018-05-09 Thread bill lam
IF there are no anticipated errors in the script, then one can put an arbitrary sentence that will raise execution error such as 13!:8[3 at the point of stop loading, and load the script and ignore the error, 0!:0 ::0: foo the side effect of the portion already loaded should still remain. On Thu

Re: [Jprogramming] Fwd: Convention to stop loading a script

2018-05-09 Thread Eric Iverson
I second Martin's comments about being wary of another level of meta-language for basic script load. There might be good arguments for custom loaders that handle things like this and more. But let's not overload load! On Wed, May 9, 2018 at 6:34 PM, wrote: > Ian Clark wrote: > > > >Can I propo

Re: [Jprogramming] Fwd: Convention to stop loading a script

2018-05-09 Thread neitzel
Ian Clark wrote: > >Can I propose we agree to alter the stdlib verb: (load) to provide a way to >stop loading a given script? > > @@NB. stop loading at this line > >certainly does that, but generates an unwelcome "syntax error". This can >interfere with calling processes. I'd be wary of establis

Re: [Jprogramming] Fwd: Convention to stop loading a script

2018-05-09 Thread chris burke
I have often wondered about this. In my own practice, I use Fraser Jackson's Note convention which I think works very well. The lack of syntax coloring is a minor issue. Also, Jqt supports add/delete Note from the keyboard with Ctrl+Shift+/ . The problem with any convention like @@ is that it wil

[Jprogramming] Fwd: Convention to stop loading a script

2018-05-09 Thread Ian Clark
Cross-posted to programming forum at request of Chris Burke. Ian Clark -- Forwarded message -- From: Ian Clark Date: Wed, May 9, 2018 at 10:35 AM Subject: Convention to stop loading a script To: c...@jsoftware.com Can I propose we agree to alter the stdlib verb: (load) to provid