jemc changed the topic of #ponylang to: Welcome! Please check out our Code of Conduct => https://github.com/ponylang/ponyc/blob/master/CODE_OF_CONDUCT.md | Public IRC logs are available => http://irclog.whitequark.org/ponylang | Please consider participating in our mailing lists => https://pony.groups.io/g/pony
jemc has quit [Ping timeout: 252 seconds]
jemc has joined #ponylang
samuell has quit [Remote host closed the connection]
jemc has quit [Ping timeout: 240 seconds]
endformationage has quit [Quit: WeeChat 1.9]
plietar has joined #ponylang
plietar has quit [Remote host closed the connection]
Praetonus has quit [Ping timeout: 240 seconds]
Praetonus has joined #ponylang
plietar has joined #ponylang
Praetonus has quit [Quit: Leaving]
jemc has joined #ponylang
jemc has quit [Ping timeout: 240 seconds]
jemc has joined #ponylang
plietar has quit [Remote host closed the connection]
plietar has joined #ponylang
plietar has quit [Ping timeout: 252 seconds]
jemc has quit [Ping timeout: 248 seconds]
samuell has joined #ponylang
vaninwagen has joined #ponylang
plietar has joined #ponylang
Matthias247 has joined #ponylang
plietar has quit [Remote host closed the connection]
plietar has joined #ponylang
samuell has quit [Remote host closed the connection]
samuell has joined #ponylang
<achamber1> What is the thought on renaming net/http Logger to HTTPLogger?
<achamber1> it seems kind of annoying I can't use http and logger in the same file
<achamber1> as it is I need to use an import alias
<achamber1> but its kind of silly to type something like
<achamber1> log.Logger, or http.HTTPServer
coskunyerli has joined #ponylang
coskunyerli has quit [Client Quit]
<vaninwagen> achamber1, i would in favor of renaming here. the same issue exists with Set, Map, List in collections and collections/persistent.
vaninwagen has quit [Ping timeout: 240 seconds]
_andre has joined #ponylang
vaninwagen has joined #ponylang
<SeanTAllen> i would not be in favor of renaming the persistent collections without some serious convincing. renaming net/http logger seems somewhat reasonable to me, although i'd want to read more about the pain in the RFC.
<vaninwagen> SeanTAllen totally agree! just wanted to mention a place where i stumbled over equal type names before.
<Candle> Should the core libraries have a target to not have duplicate basic names? I still have flashbacks from when I was learning Java; and encountering java.util.List and java.awt.List!
<Candle> Another approach might be to enable aliasing of types; though that's a change to how the 'use' statement works.
Matthias247 has quit [Read error: Connection reset by peer]
<vaninwagen> i like this target i have to admit
<SeanTAllen> i dont like the target
<SeanTAllen> what do you mean by "Another approach might be to enable aliasing of types; though that's a change to how the 'use' statement works." Candle ?
<SeanTAllen> do you mean something like use new_module_name = "actual_module_name" ?
<Candle> SeanTAllen: 'use h = "http/client"' becomes something more like 'use HTTPLogger = "http/client.Logger"'
<Candle> So you're just aliasing that type from the http library.
<SeanTAllen> im quite happy with h.Logger
<SeanTAllen> feel free to open an RFC for the other
<SeanTAllen> this has never been an issue for me in our codebase
<Candle> Personally, as soon as I thought of it I was talking myself out of it - it complicates the language even more, and obsfucates code that uses it.
<vaninwagen> my only argument for avoiding equal typenames in stdlib is to reduce possible friction/surprise for newcomers - i don't know if it is actually worth the changes. actually i am also living with the same situation in scala right now and it never really bugged me.
jemc has joined #ponylang
<Candle> vaninwagen: On the flip side; it introduces people to aliasing in a use statement!
<vaninwagen> :) good point
aturley has quit [Ping timeout: 248 seconds]
Acorn2 has quit [Ping timeout: 260 seconds]
Matthias247 has joined #ponylang
Praetonus has joined #ponylang
vaninwagen has quit [Ping timeout: 240 seconds]
<jemc> it can be hard to choose whether to prefix types with the library name or not - `use "http"` works better if the type name is `HTTPServer`, and `use http = "http"` works better if the type name is just `Server` - it can be hard to know what users of your library will want to do
<jemc> this is one reason why I wish pony's include system was a bit more like some other languages with nested namespaces that you can import in various ways
<jemc> for example, something like `HTTP::Server` or `HTTP.Server` representing a `Server` type inside an `HTTP` namespace
<jemc> this would give the best of both worlds, I think
samuell has quit [Quit: Leaving]
endformationage has joined #ponylang
tscho has quit [Read error: Connection reset by peer]
tscho has joined #ponylang
samuell has joined #ponylang
plietar has quit [Remote host closed the connection]
plietar has joined #ponylang
plietar has quit [Ping timeout: 252 seconds]
vaninwagen has joined #ponylang
jemc has quit [Ping timeout: 240 seconds]
jemc has joined #ponylang
samuell has quit [Quit: Leaving]
vaninwagen has quit [Ping timeout: 260 seconds]
plietar has joined #ponylang
_andre has quit [Quit: leaving]
Praetonus has quit [Quit: Leaving]
yuhu678 has joined #ponylang
yuhu678 has quit [Client Quit]
jemc has quit [Ping timeout: 240 seconds]
Matthias247 has quit [Read error: Connection reset by peer]