Comment

Comment by teddyh

I think I’d prefer it if the symbols to be prefixed with a namespace required a :: instead of having to prefix every external call with ::.

I.e. I would prefer

    (require 'externalpackage)
    (define-namespace thispackage-
    (defvar ::foo "yow")               ; foo is explicitly local, and
                                       ; since it is short, an extra
                                       ; "::" does not make much
                                       ; difference
    (externalpackage-frobnicate ::foo) ; frobnicate is external
    )
to this, which is how the package works currently:

    (require 'externalpackage)
    (define-namespace thispackage-
    (defvar foo "yow")                 ; Some things like defvar
                                       ; magically don’t need ::
    (::externalpackage-frobnicate foo) ; Ugly, and I need to do this
                                       ; for *every* non-local symbol,
                                       ; making them even longer!
    )
parent teddyh 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton