JShell /-n command

Paul Deitel paul.deitel at deitel.com
Wed Oct 12 16:55:49 UTC 2016


Is the command 

	/-n 

actually useful? Chances are, if you have any decent number of snippets, you will not recall more than the last few you typed. 

You can already execute the last valid snippet with /!.

For anything else, you’d probably have to do a /list to see what valid snippets you have. At that point, rather than doing /-n, you’d just use /<id> to execute a given snippet.

One point of emphasis in many JShell presentation has been how it’s useful for beginners. I’ve been teaching beginning programmers for 25+ years. A beginner seeing options like this will only get confused. 

I recommend removing /-n as an option.

Paul

Paul J. Deitel, CEO
Deitel & Associates, Inc.
Oracle Java Champion
Microsoft Visual C# MVP 2012-2014

http://www.deitel.com
978-443-2423

Facebook: http://facebook.com/DeitelFan
Twitter: @deitel
LinkedIn: http://www.linkedin.com/company/deitel-&-associates
YouTube: http://youtube.com/DeitelTV
Instagram: http://instagram.com/DeitelFan
Google+: http://google.com/+DeitelFan

Newsletter: http://www.deitel.com/newsletter/subscribe.html

On-Site Worldwide Corporate Training: http://www.deitel.com/training/
Purchase our most recent books: http://amzn.to/18BLG2I
Resource Centers: http://www.deitel.com/ResourceCenters.html






More information about the kulla-dev mailing list