kiselgra / c-mera

Next-level syntax for C-like languages :)
Other
405 stars 17 forks source link

Addressing the global scope #84

Closed kiselgra closed 5 years ago

kiselgra commented 7 years ago

Hi,

I have a class in a namespace that shares its name with a global funcion:

(function foo () -> void ...)
(namespace N
  (class foo ()
     (public
       (function fun () -> void
         (foo)))))

As this requires explicit qualification I write

...
         (funcall #:nil:foo)

which works, but feel weird. @lispbub What do you think about defaulting to :: when only one atom is found during namespace destructuring? E.g.:

...
         (funcall #::foo)

Currently we default to foo(), but my guess is nobody will use this when (foo) and (funcall foo) are actually much simpler.