Re: Feature for next Eu
- Posted by Everett Williams <rett at GVTC.COM> Nov 12, 1999
- 477 views
On Fri, 12 Nov 1999 16:06:44 -0800, Cuny, David at DSS <David.Cuny at DSS.CA.GOV> wrote: >Roderick Jackson wrote: > >> last (s,5) --> the last 5 elements of s > >Long standing on my wish list is an 'end' operator, like this: > > s = s[1..end] > >instead of: > > s = s[1..length(s)] > >I suspect that this falls into the 'extra typing' clause, but it occurs >often enough that having an idiomatic way of doing in in Euphoria is >justified. Also, very natural and clear. >It's been mentioned a number of times that routine_id it disturbs the >'purity' of Euphoria. Now, I'm the first to whine that it's not the most >elegant construct in Euphoria. But, for me, it certainly has been one of the >most valuable new features in Euphoria. > >Without it, writing EE was painful. All thee the event loops all had to be >written inside out. I suspect that's why virtually no one (including myself) >has used the TextGUI library. > >Virtually all the GUI toolkits I've coded since the introduction of >routine_id have depended on it: WinMan, Win32Lib, Dos32Lib, and all flavors >of Llama. My interpreters (such as Eu) couldn't be written without it, >either. > >All this is to say that a feature, be it routine_id/peek/poke, etc.) >shouldn't be dismissed merely because it's 'inelegant'. > >-- David Cuny I didn't day that the capability wasn't needed, I said that it damages the beauty and the CLARITY of the code...with as much emphasis as I can put on the clarity. There is bound to be a cleaner method of accomplishing this purpose. I don't have one in my head now, but I am working on it. Everett L.(Rett) Williams rett at gvtc.com