From: Lyle Johnson Date: 2006-02-10T06:11:06+09:00 Subject: Re: How to improve this kind of API? On 2/9/06, Simon Kr�ger wrote: > Well, i haven't used FXRuby very much, so i might miss the problem with > the current interface, but from what i see below i think this new > version doesn't justify breaking old code. OK. > > For example, the 4-way > > splitter window can be configured to expand only its top-left pane: > > > > splitter1.expanded = TOP_LEFT > > Seems perfectly fine. Ok :top_left if more ruby'ish but also more > dangerous. Why do you consider it more dangerous to use a symbol in place of a symbolic constant? Is it that Ruby would "notice" that a constant's name is erroneous (e.g. misspelling TOP_LEFT as TOPLEFT), but wouldn't notice if you made the same mistake for a symbol or string (e.g. misspelling "top_left" as "topleft")? > The following isn't meant to be 'the soultion' but perhaps food for > thoughts: Thanks. I need to ponder this...