Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Programming] Am I the only one...?
#2
I never see THAT many try/catch-expressions in java-code. Mind putting some up?

It's not necessarily bad code, efficient-wise. It's just ugly. Instead of throwing an error, you should rather just return null. But well, for type-specified languages, that turns out to be rather hard. I consider it as a workaround.

I really hate Python at dictionaries there though. dict[key] raises KeyError when key is missing. asdf.
Reply


Messages In This Thread
[Programming] Am I the only one...? - by Fiel - 2009-09-30, 06:45 PM
[Programming] Am I the only one...? - by Nikkey - 2009-09-30, 07:03 PM
[Programming] Am I the only one...? - by Fiel - 2009-09-30, 07:09 PM
[Programming] Am I the only one...? - by Cyadd - 2009-09-30, 07:30 PM
[Programming] Am I the only one...? - by Spaz - 2009-09-30, 07:45 PM
[Programming] Am I the only one...? - by Nikkey - 2009-09-30, 07:49 PM
[Programming] Am I the only one...? - by Fiel - 2009-09-30, 08:13 PM
[Programming] Am I the only one...? - by AngelSL - 2009-10-04, 01:30 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)