cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

JSL debugging: placeholder for last returned value

☐ cool new feature
☐ could help many users!

☐ removes a „bug“

☑ nice to have

☐ nobody needs it

 

 

In Mathematica, one can use "%" as a placeholder for the last returned value.

hogi_0-1668361114553.png

Could you please implement something similar in JSL?

Could help during debugging:

Run single lines of the original code, add some test code

important: don't mess up the original code lines,

but instead: get access to the return values via the placeholder .

Aditional benefit: work gets focused on "forward direction":

Ah, there is some returned value, how to continue and get most out of it ...

instead of 

How do I have to change the previous code to get access to the returned value.

 

 

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Graph Builder(
	Size( 437, 413 ),
	Graph Spacing( 4 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
);
// during debugging:
gb = %;(gb << XPath( "//AxisBox" )) << select;// or even better:
gb << get XML();
New Window("xml", %)

https://community.jmp.com/t5/Discussions/placeholder-for-the-last-returned-value/m-p/568699

 

 

 

 

more wishes submitted by  hogi_2-1702196401638.png

3 Comments
kayleewarren
Staff
Status changed to: Acknowledged

@hogi Thank you for your suggestion! We have captured your request and will take it under consideration.

SamGardner
Level VII
Status changed to: Investigating
 
SamGardner
Level VII
Status changed to: Not Planned For Now

@hogi thank you for the idea.  After some review, we have decided to not pursue this.