Hi everybody,

I've had this idea rolling around in my head for a while now and I'm not
sure if it is worth diving into.

What do you think of importing single functions from an online
repository of functions that anybody can contribute to. Functions would
be uniquely identified by their hash (after gofmt) so you could do stuff
like this:

    package main

    import example "funcservice.com/somehash"

    func main() {
        example.SomeFunc()
    }

where somehash either points to a single function or a collection of
functions (to save on import aliases) and be certain that SomeFunc never
changes (unless someone hacks funcservice.com). Basically the idea is to
encourage writing and sharing simple self-contained functions.

Apart from security implications and implementation details, is this
something anybody could see themselves using in personal or professional
projects?

--Lukas

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to