Re: Feature for next Eu
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Nov 12, 1999
- 495 views
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. 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