Making the case for anonymous methods

I don’t know about you, but I make a lot of use of WebMethods when developing a less than trivial Morfik application.  WebMethods are extremely useful and actually quite easy to use, once you’ve got the hang of it. Depending on how much and what kind of information you want to exchange between your browser and server code, it can as simple as just invoking the RunWebMethod procedure.

One thing always leaves me with the feeling that I’m missing something, though.  When you are using a Web Method from an imported Web Service, or even one of your own that requires more and more complex parameters, you end up having to use a callback to handle the method’s return.  I have no problem with the concept there, but the implementation could be easier to write.  Wouldn’t it be nice if you could just type your code for handling the method’s return in line with the method invocation?


Just about every major programming language in use today implements anonymous functions and/or anonymous methods.  I think this would be a nice addition to Morfik.  This kind of construct is already defined in the C# language and Microsoft implements it in its implementation of Basic for .Net.  The Delphi language which is the most used implementation of Object Pascal, today, has also added support for this construct. This means that a syntax is already defined and could be adopted, for all the languages Morfik supports, in a future release of the product.

Considering the innovative ways in which the Morfik R&D team approaches such issues I wouldn’t be surprised if they came out with several other clever uses for this feature once it was implemented.

This entry was posted in BX, CX, Delphi, FX, Programming, Web Services. Bookmark the permalink.

One Response to Making the case for anonymous methods

  1. Donald Shimoda says:

    I really hope morfik developers fixes the importing webservices tool from wdsl. It only allow one service for file, a nonsense. And make impossible to use remobjects web services rigth now.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>