I've kept some notes as I learned Gtk# . In the next few postings I'll comment on what features have annoyed me and how I dealt with them.
Use of "out" parameters for varous methods.
Eg: The GetActiveIter of the ComboBox classes use an Out paramter instead of just returning the iter.
I'm annoyed by this because I don't want to have to instantiate a variable when I just need the current iter for a moment.
I've heard the argument that by returning a bool indicating success or failure you can save some checking effort, but I think returning null on failure would be just as good.
Workaround:
Obviously, you just declare a variable to store the active iter.
No comments:
Post a Comment