Re: Euphoria vs The Other Guys --- and RTFM
- Posted by SDPringle May 03, 2014
- 1529 views
As to what is 'Euphoric'. You need to define this. Strings are easily implemented as a UDT. If added as a builtin type, you would only need to modify the parser part. I disagree with making something builtin when you can do something in user code, efficiently.
Naming conventions is not something we really enforced or made up. We have lowercase routines and upper case constants. The lowercase words consist of English words with underscores separating them.
We have 'create_directory' and 'clear_directory' and all sorts of routines named this way. Why on earth do have a routine named 'chdir'?
We mostly follow this convention of using complete words but we sometimes take things from C and break the convention: 'getenv' and 'sizeof'. When these ought to be 'get_environment' and 'size_of'. Another is 'sqrt' instead of 'square_root'.
The regular expression routines which scan strings for string patterns have 'find' in them, whereas find is for seeking members of a sequence and match is for searching sub-strings. They really ought to have been named with 'match'.
There is one routine that returns the year as years since 1900. Who was born in 1900?
Finally, the ifdef/endif syntax forces the user to think of two distinct symbol tables when programming. The ifdef usage doesn't help the user with spelling mistakes. One, however, can use platform() and version() somewhere in std/*.e to do the same thing. Yes, I know, it is slower though.
In spite of these warts, working with a string is the same as working with a sequence of integers, or a sequence of anythings.
S D Pringle