[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: how to or could I ?

  • Thread starter Thread starter Mike Fechner
  • Start date Start date
Status
Not open for further replies.
M

Mike Fechner

Guest
New C# way? C# has out and ref parameters since over 15 years now. But also objects to be returned. If you look at the majority of C# apis, that return more than a simple or already existing object, they return a specialized object. The business value: easier to read and maintain code. You’ve never been in the situation where you had to add an additional output parameter to a procedure or function? A pure nightmare. But a piece of cake with an object. Von: slacroixak [mailto:bounce-slacroixak@community.progress.com] Gesendet: Donne rstag, 15. Februar 2018 12:59 An: TU.OE.General@community.progress.com Betreff: RE: [Technical Users - OE General] how to or could I ? Update from Progress Community slacroixak Returning one single data object to hold multiple values is the old Java way. Often some boiling code with classes that bring little value to the business. I finally appreciate the new C# way that lets you define multiple out params for simple scalar parameters. In that sense, the Progress ABL was ahead of its time. Why not using it? Procedures, Methods, UDF, all those are routines. UDF and Methods have many advantages over procedures : -strong typing for a return value -signature check at compile time -completion in the editor -MUCH FASTER than a proc because no need to check existence of the routine and the signature at runtime (that was done at compile time) -more standard for new developers View online You received this notification because you subscribed to the forum. To unsubscribe from only this thread, go here . Flag this post as spam/abuse.

Continue reading...
 
Status
Not open for further replies.
Back
Top