• Eric Myhre's avatar
    Node for all. Last phase deref. · 34a8b3c7
    Eric Myhre authored
    Finally got the bind and free impls on the same page.
    
    Surprisingly, the bind node can work without being a ptr itself.
    I'm not sure if that'll last, but let's try to roll with it.
    If we *can* keep that property, it might reduce GC impact in a pretty
    significant way.
    
    Added a 'fluent' package.  It's just a twinkle in my eye so far, but it
    might represent the nicest way through all the discussed issues.
    Nodes shouldn't have to be panicful; and users shouldn't have to do all
    error handling manually either.  A package full of fluent interfaces
    that know what's going on seems to be the only way to get both.
    But we'll see how this shakes out.  Maybe typeful traversers will
    make the whole thing end up more coreward than being relegated to a
    helper package.  I have no idea.
    Signed-off-by: default avatarEric Myhre <hash@exultant.us>
    34a8b3c7
freeNode.go 3.29 KB