Re: . or : for namespace?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu