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
aceluck has joined #ponylang
aceluck has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
plietar has joined #ponylang
aceluck has joined #ponylang
plietar has quit [Ping timeout: 276 seconds]
plietar has joined #ponylang
aceluck has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aceluck has joined #ponylang
Praetonus has quit [Quit: Leaving]
jemc has quit [Ping timeout: 268 seconds]
aceluck has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aceluck has joined #ponylang
http_GK1wmSU has joined #ponylang
http_GK1wmSU has left #ponylang [#ponylang]
jemc has joined #ponylang
<emilbayes> why is this illegal? https://is.gd/XGdQDM
<jemc> it's just a design choice that was made in pony early on - the names of methods, fields, params, and local variables in the same entity aren't allowed to shadow eachother - the idea was that such ambiguity tends to result in subtle bugs
<emilbayes> jemc: Oh okay, was just caught by it in my iterator stuff. List has a constructor call `from`, which means that can't be used for the range arguments
<emilbayes> I could go with the hack from' but ...
amclain has quit [Quit: Leaving]
<jemc> yeah it'll have to be `from'`
<jemc> it's pretty common to get forced into making params have a prime
jemc has quit [Ping timeout: 240 seconds]
endformationage has quit [Quit: WeeChat 1.7]
aceluck has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vaninwagen has joined #ponylang
aceluck has joined #ponylang
aceluck has quit [Quit: Textual IRC Client: www.textualapp.com]
Candle has quit [Ping timeout: 246 seconds]
MaybeDragon has joined #ponylang
http_GK1wmSU has joined #ponylang
http_GK1wmSU has left #ponylang [#ponylang]
inara has quit [Quit: Leaving]
inara has joined #ponylang
Candle has joined #ponylang
plietar has quit [Remote host closed the connection]
plietar has joined #ponylang
plietar has quit [Ping timeout: 258 seconds]
trapped has joined #ponylang
trapped has quit [Read error: Connection reset by peer]
trapped has joined #ponylang
samuell has joined #ponylang
plietar has joined #ponylang
plietar has quit [Ping timeout: 276 seconds]
aceluck has joined #ponylang
CcxWrk has quit [Ping timeout: 240 seconds]
_andre has joined #ponylang
aceluck has quit []
CcxWrk has joined #ponylang
plietar has joined #ponylang
plietar has quit [Ping timeout: 255 seconds]
vaninwagen has quit [Ping timeout: 248 seconds]
jemc has joined #ponylang
vaninwagen has joined #ponylang
dougmacdoug has joined #ponylang
dougmacdoug has left #ponylang [#ponylang]
plietar has joined #ponylang
plietar has quit [Ping timeout: 246 seconds]
plietar has joined #ponylang
vaninwagen has quit [Ping timeout: 248 seconds]
endformationage has joined #ponylang
endformationage has quit [Quit: WeeChat 1.7]
plietar has quit [Remote host closed the connection]
plietar has joined #ponylang
samuell has quit [Quit: Leaving]
plietar has quit [Ping timeout: 255 seconds]
dougmacdoug has joined #ponylang
dougmacdoug has left #ponylang [#ponylang]
dougmacdoug has joined #ponylang
dougmacdoug has quit [Ping timeout: 240 seconds]
endformationage has joined #ponylang
bimawa1 has quit [Quit: WeeChat 1.4]
kulibali has joined #ponylang
Matthias247 has joined #ponylang
_andre has quit [Quit: leaving]
tscho has joined #ponylang
endformationage has quit [Quit: WeeChat 1.7]
Matthias247 has quit [Read error: Connection reset by peer]
<ada[m]> Does pony have anything like python generators/list comprehensions?
<jemc> ada[m]: I think it's not quite the same, but filling roughly the same "role" of Python generators in Pony is the `Iterator` interface: https://github.com/ponylang/ponyc/blob/master/packages/builtin/iterator.pony
<jemc> and there's a nifty package for doing various transformations on iterators that are similar "in spirit" to list comprehensions: https://github.com/ponylang/ponyc/blob/master/packages/itertools/itertools.pony
<jemc> the gist is that an `Iterator` is a stateful object that gets mutated to "point to" the next element in whatever you're iterating over, with `next` being called repeatedly to return the next element
<jemc> we don't have `yield` keyword from python or anything like it, because we don't have continuation passing at all, really