Single-Entry, Single-Exit, Should It Still Be Applicable In OO?(msmvps.com)

submitted by PeterRitchiePeterRitchie(1505) 4 years, 2 months ago

Does the "Single Point of Exit From a Function" Principle still applicable in Object-oriented programming?

1 comment |category: |Views: 9

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by samdnpsamdnp(980) 4 years, 2 months ago 0

Early return in this case is far better. Writing single-exit is a bit of an art, but with modern compilers it doesn't matter with performance so much.

Reply

information Login or create an account to comment on this story