Info

Login

Channels

APIs

Credits

  • cheeser
  • ernimril
  • joed
  • kinabalu
  • lunk
  • ojacobson
  • r0bby
  • ThaDon
  • ricky_clarkson
  • topriddy

« 2019-10-14

2019-10-15

2019-10-16 »

Nick Message Date
lankanmon [lankanmon!~LKNnet@CPE64777d632383-CM64777d632380.cpe.net.cable.rogers.com] has joined #kotlin [12:02]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [12:16]
djhworld [djhworld!~djhworld@90.252.65.89] has joined #kotlin [12:40]
Ladicek [Ladicek!~lthon@109.164.114.141] has joined #kotlin [02:08]
Pitel [Pitel!~pitel@fw2o.masterinter.net] has joined #kotlin [02:16]
lankanmon [lankanmon!~LKNnet@CPE64777d632383-CM64777d632380.cpe.net.cable.rogers.com] has joined #kotlin [02:58]
tachoknight_ [tachoknight_!~tachoknig@205.178.20.7] has joined #kotlin [03:28]
zceejkr [zceejkr!~user@lk.84.20.231.205.dc.cable.static.lj-kabel.net] has joined #kotlin [03:38]
Tazmain [Tazmain!~Tazmain@unaffiliated/tazmain] has joined #kotlin [04:02]
esro [esro!~esro@b00001.krakowskiinternet.pl] has joined #kotlin [04:05]
bernard_ [bernard_!~bernard@b2b-78-94-192-5.unitymedia.biz] has joined #kotlin [04:23]
bernard_ [bernard_!~bernard@b2b-78-94-192-5.unitymedia.biz] has joined #kotlin [04:52]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [05:02]
KeyJoo [KeyJoo!~KeyJoo@37.1.36.143] has joined #kotlin [05:18]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined #kotlin [05:21]
Tazmain [Tazmain!~Tazmain@unaffiliated/tazmain] has joined #kotlin [05:38]
esro [esro!~esro@b00001.krakowskiinternet.pl] has joined #kotlin [07:12]
esro [esro!~esro@b00001.krakowskiinternet.pl] has joined #kotlin [07:14]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [07:42]
MassDebates [MassDebates!~MassDebat@unaffiliated/massdebates] has joined #kotlin [07:46]
DTZUZO [DTZUZO!~DTZUZO@70.71.126.42] has joined #kotlin [08:12]
argo [argo!~argo@unaffiliated/argo] has joined #kotlin [08:14]
DTZUZO [DTZUZO!~DTZUZO@S0106bcd165662a4d.vs.shawcable.net] has joined #kotlin [08:22]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [09:05]
Dece [Dece!~Shgck@ns330733.ip-37-187-120.eu] has joined #kotlin [09:05]
Dece [Dece!~Shgck@ns330733.ip-37-187-120.eu] has joined #kotlin [09:07]
Tazmain [Tazmain!~Tazmain@unaffiliated/tazmain] has joined #kotlin [09:25]
DTZUZO [DTZUZO!~DTZUZO@S0106bcd165662a4d.vs.shawcable.net] has joined #kotlin [09:27]
DTZUZO [DTZUZO!~DTZUZO@S0106bcd165662a4d.vs.shawcable.net] has joined #kotlin [10:19]
macroprep [macroprep!~brotherco@172.193.104.55] has joined #kotlin [10:20]
macroprep is it possible to obtain the... parent class of an iterator instance? for example, obtain the mutableList from a mutableList.iterator() instance [10:26]
macroprep specifically access its getter and/or setter if possible [10:27]
macroprep like a mutable Iterable [10:27]
Bombe No. [10:28]
Bombe If you want that, you?re doing it wrong. [10:28]
macroprep for example, something like (which is invalid) fun <T>Iterable<T>.forEachAssign(action: () -> T) = this.forEachIndexed { index, type -> this[index] = action() } [10:29]
macroprep so i dont need to implement it for every class in which implements Iterable [10:30]
Bombe That code is horrible. [10:31]
Bombe It is ? once again ? amazing that you understand the syntax but almost nothing of the intention behind it. [10:31]
Bombe What you are looking for is map, and you don?t mutate whatever Iterable you have been given. [10:32]
macroprep ou nvm i think i found it, MutableIterable [10:32]
macroprep nvm, it cant be returned by a MutableList ;-; (has no .mutableIterator() ) [10:34]
Bombe That?s because you are not supposed to do it that way. [10:34]
Bombe Damage reduction by API design. [10:35]
Bombe Generally, if you want to do something and the API just doesn?t seem to want to agree with you it is time to take a step back and ask yourself whether you should choose another way to achieve what you want. [10:36]
dreamreal and honestly you should take another step back from there and ask yourself if you should even try programming [10:38]
dreamreal (hint: the answer is "no") [10:38]
dreamreal If you have to step back and ask yourself "should I be doing it this way" as Bombe suggests... more than ten times, you're probably missing something really crucial [10:39]
dreamreal do it a few times, it's normal [10:39]
dreamreal do it over and over and over and over and over and over again... it's normal if you're not meant to be a programmer, so please stop [10:39]
pheerai [pheerai!~pheerai@92.117.241.91] has joined #kotlin [10:50]
hil8 [hil8!~hil@41.215.169.28] has joined #kotlin [11:02]
funeral [funeral!~Funeral@2a01:79d:b7df:4bd8:f3d4:5e09:6ffa:eb73] has joined #kotlin [11:36]
tachoknight [tachoknight!~tachoknig@205.178.20.7] has joined #kotlin [11:37]
macroprep could this do? fun <T>Iterable<T>.forEachAssign(action: () -> T) { val i = this.toMutableList().listIterator(); while(i.hasNext()) { i.next(); i.set(action()) } } [11:40]
Bombe No! [11:41]
macroprep or would this modify a copy of the iterator() instance instead of the object that invoked the iterator itself [11:42]
macroprep copy of the object that invoked the iterator() instead of* [11:42]
Bombe Neither. It would totally fuck your iterator and everything you wanted to do with it. [11:45]
Bombe Just use map like a normal person. [11:45]
dreamreal haha [11:51]
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined #kotlin [12:45]
MassDebates [MassDebates!~MassDebat@unaffiliated/massdebates] has joined #kotlin [12:51]
macroprep implements my own Iterable interface [12:53]
dreamreal this will end well [12:57]
zutat [zutat!4e31afdd@unaffiliated/zutat] has joined #kotlin [01:06]
bitwinery [bitwinery!~bitwinery@c-73-37-18-139.hsd1.wa.comcast.net] has joined #kotlin [01:23]
TimMc Can't tell if macroprep is trolling or just really likes asking questions but not listening to answers. [01:24]
dreamreal TimMc: the latter, sort of [01:27]
dreamreal I think there's a fundamental break with reality when it comes to macro and programming [01:30]
TimMc Leaning towards "trolling" after looking at backlog. [01:46]
dreamreal I think they're serious [01:54]
dreamreal they're just that... clueless [01:54]
javabot [javabot!~javabot@unaffiliated/javabot] has joined #kotlin [02:30]
MassDebates_ [MassDebates_!~MassDebat@unaffiliated/massdebates] has joined #kotlin [03:22]
Bombe TimMc, if they were trolling it would be really, really masterful. [03:57]
lankanmon [lankanmon!~LKNnet@CPE64777d632383-CM64777d632380.cpe.net.cable.rogers.com] has joined #kotlin [04:58]
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined #kotlin [05:00]
TimMc Bombe: I choose to believe this, because it preserves my faith in humanity. [05:06]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [05:09]
computeiro [computeiro!~Wender@179.104.193.162] has joined #kotlin [05:17]
dreamreal oh, you sweet summer child [06:01]
argo [argo!~argo@unaffiliated/argo] has joined #kotlin [07:28]
ziyourenxiang_ [ziyourenxiang_!~ziyourenx@unaffiliated/ziyourenxiang] has joined #kotlin [07:44]
hil8 [hil8!~hil@41.215.169.28] has joined #kotlin [07:53]
yawkat [yawkat!~yawkat@cats.coffee] has joined #kotlin [08:28]
macroprep [macroprep!~brotherco@cpe-172-193-104-55.qld.foxtel.net.au] has joined #kotlin [08:41]
_xor Stupid question, but Kotlin short-circuits boolean conditionals, right? [08:46]
_xor if (someFlag && someOperation()) { ... } [08:46]
_xor If someFlag is false, then it won't execute someOperation(), correct? [08:46]