#go-nuts

/

      • tonik has quit
      • paulsmith has quit
      • csakatoku has quit
      • cespare
        I think they've actually removed the phrase https://botbot.me/files/freenode/go-nuts/"reference typehttps://botbot.me/files/freenode/go-nuts/" from the spec and effective go
      • I believe it used to be in both
      • it's a confusing term.
      • davecheney
        cespare: yeah, after all the arguments it caused, it was simpler to ban the word
      • cespare
        yeah
      • rydgel joined the channel
      • iant1 is now known as iant
      • derferman has quit
      • jordanorelli joined the channel
      • riker20001 joined the channel
      • OwenOu has quit
      • Namegduf
        It's important to understand working with types containing pointers in general- user types can do this easily.
      • dsal joined the channel
      • lukec has quit
      • rydgel has quit
      • jlaffaye_ joined the channel
      • jlaffaye has quit
      • swarthy joined the channel
      • snearch has quit
      • tassmjau has quit
      • infynyxx has quit
      • davecheney
        speaking of vim, there is a reason the x220 keyboard has a HUGE escape key
      • BjornT has quit
      • Rennex has quit
      • Aram
        sadly new ThinkPads suck in this regard.
      • dforsyth has quit
      • BjornT joined the channel
      • they botched the keyboard layout.
      • I don't think I'm buying another ThinkPad again.
      • zephyrtronium joined the channel
      • davecheney
        Aram: the 230s ?
      • sent_hil_
        small cased functions & types are visible across entire pkg, but not accessible from diff. pkg?
      • davecheney
        yeah
      • swarthy
        aram the new x series lenovos are pretty cool
      • davecheney
        sent_hil_: yes, their are two visibilty options, package public and package private
      • swarthy
        if you are shopping
      • Aram
        awful screen resolution, botched keyboard layouts, no thanks.
      • davecheney
        so called exported and not exported
      • Rennex joined the channel
      • Aram: but what are you going to do ? buy a dell ?
      • hp's are crap
      • acer -- pfft
      • Aram
        well.
      • I have a mac
      • davecheney
        toshibas haven't been good since the A series
      • Aram
        at least the macs have good screens.
      • sent_hil_
        davecheney: if imports are file specific?
      • flaguy48 has quit
      • *but
      • cmn has quit
      • Aram
        screen > keyboard for me.
      • so mbp it is.
      • davecheney
        Aram: yeah, that is the conclusion i have come too
      • sent_hil_: yes
      • etcetera_ joined the channel
      • swarthy
        the only downside of the mac is the function key makes control odd. So i ended up putting caps lock to control.
      • etcetera has quit
      • etcetera_ is now known as etcetera
      • that and it has 400% markup
      • sent_hil_
        davecheney: that's odd
      • oh well, thx!
      • cmn joined the channel
      • namespace joined the channel
      • dforsyth joined the channel
      • dforsyth has quit
      • dforsyth joined the channel
      • davecheney
        sent_hil_: so you are asking that if you import package A in file a.go, that import virally infects all the other
      • files in the package ?
      • kazupon has quit
      • sent_hil_
        davecheney: if they're all part of same pkg, wouldn't it make sense to?
      • davecheney
        sent_hil_: that is a terrible idea
      • daaku has quit
      • every go file can be read without having to refernce anything else
      • tassmjau joined the channel
      • Namegduf
        It'd be harder to see what package foo in foo.Whatever corresponds to if the import line was allowed to be in another package
      • davecheney
        if you have a symbol, a.X, and there is no import https://botbot.me/files/freenode/go-nuts/"ahttps://botbot.me/files/freenode/go-nuts/" at the top of the file, then you know a is a package or local scoped variable
      • Namegduf
        And each file only bringing the things it needs into scope reduces the number of packages you need in scope a lot of the time
      • Creating the concept of file scope, which doesn't exist anywhere else in Go, for importshttps://botbot.me/files/freenode/go-nuts/, is a tad pricy complexity-wise, but it's hard to see a tidy alternative solution
      • IvanoffCSI has quit
      • mike007 joined the channel
      • mreedell-work joined the channel
      • sent_hil_
        ah, ic
      • Max|| has quit
      • |Craig|
        Namegduf: the package declaration at the top of files is also file local
      • sent_hil_
        does the order of imports https://botbot.me/files/freenode/go-nuts/in a file guarantee the order in which they're imported?
      • |Craig|
        sent_hil_: no
      • sent_hil_: at the very least, other packages could import them differently, even if it did enforce the order based on how they are listed
      • Namegduf
        sent_hil_: Go doesn't have any particular concept of https://botbot.me/files/freenode/go-nuts/"order in which they are importedhttps://botbot.me/files/freenode/go-nuts/"
      • |Craig|
        also, they are generally sorted when formatting, so the order shouldn't effect anything
      • Namegduf
        Unlike C, they all get their own namespace, so there's no conflicting definitions or redefinitions
      • jessta has quit
      • I don't believe there is any guarantee about when their init functions are run, either, aside that they're all run prior to the importihttps://botbot.me/files/freenode/go-nuts/ng package's
      • |Craig|
        Namegduf: there is a partial ordering: all inits get run from packages you import before ther packages that import them
      • leehambley joined the channel
      • Namegduf
        |Craig|: That is not a partial ordering on imported packages by a package
      • |Craig|: Just a partial ordering of initialisation on packages as a whole
      • sent_hil_
        Namegduf: the init function run order is the reason i was wondering
      • |Craig|
        Namegduf: correct, it says nothing about that
      • BlackNoxis has quit
      • Namegduf
        sent_hil_: You can't rely on the relative time of initialisation of two packages which don't import each other, directly or indirectly
      • jessta joined the channel
      • jergason has quit
      • mreedell-work has quit
      • lukec joined the channel
      • leehambley has quit
      • infynyxx joined the channel
      • infynyxx has quit
      • askatasuna joined the channel
      • jophish has quit
      • rphillips has quit
      • twmb has quit
      • IvanoffCSI joined the channel
      • rphillips joined the channel
      • andreaa has quit
      • jpoz has quit
      • Aram has quit
      • jpoz joined the channel
      • mcef has quit
      • csakatoku joined the channel
      • dardevelin has quit
      • Nisstyre-laptop has quit
      • csakatoku has quit
      • Jayflux has quit
      • rydgel joined the channel
      • nerdyworm has quit
      • c4milo joined the channel
      • etcetera has quit
      • demize has quit
      • rydgel has quit
      • wlll joined the channel
      • cooper has quit
      • mcef joined the channel
      • pothibo has quit
      • pcwalton has quit
      • wlll has quit
      • twmb joined the channel
      • NickNameNick joined the channel
      • iant has quit
      • derferman joined the channel
      • jpoz has quit
      • MacDiva has quit
      • paulsmith joined the channel
      • PepperPhD joined the channel
      • flaguy48 joined the channel
      • derferman has quit
      • mifadir joined the channel
      • kazupon joined the channel