JADE Environment Development Ideas

What's new in the upcoming JADE release?

IMPROVED DEVELOPER EFFICIENCY. ENHANCED SECURITY. SMOOTHER INTEGRATION

The JADE 2022 release meets tomorrow’s business demands.


Start your update to JADE's latest release

Functions as first-class citizens

Some other languages have functions as first class citizens, i.e. they can be stored in a variable, passed as a parameter etc.

This would allow new use cases like inline exception handlers, lambda functions and functional programming.
  • John Munro
  • May 1 2019
  • Closed
HistoricalComments
John Richards 1/02/2019 10:04:09 AM
The JEDI Review panel have decided not to proceed with this idea. However we are investigating other options which we feel will address the fundamental issue. thank you for your submission. Regards John R.

FileVision UK Ltd 15/02/2018 4:30:56 AM
The reason it came up most recently was because I wanted to get a collection group names from a collection of groups, and in C# I could do names = groups.Select(g => g.name); whereas in JADE I have to create a loop and add a variable.

I know inline exception handlers have been brought up in a separate JEDI entry, I'm not sure if first-class functions would solve that but having to make a separate exception handler method is annoying, especially if it's only a couple lines.

Ty Baen-Price 14/02/2018 3:28:35 PM
To some degree you can achieve this with methods. The invokeMethod method will allow you to call an arbitrary method, passed as a Method object, and you can implement callbacks by using interfaces. Can you be more specific about what you want to do, and why?
  • Attach files
  • +3