Re: . or : for namespace?
- Posted by c.k.lester <euphoric at ?kles?er.com> Apr 25, 2008
- 678 views
Greg Haberek wrote: > > Honestly, I think . is a horrible idea. It's been consumed by the masses of > object-oriented programming. I personally would be confused as hell if . had > a different meaning in Euphoria as it did in a bunch of other languages. Technically, it's not "a different meaning." The dot means, "access the method of the parent." It's hierarchy-specific, regardless of object orientation. A datetime function namespaced and called like dt.now() is the exact same interface result as a call to an object like dt.now(). The only thing that's different is the behind-the-scenes processing.