Info

Login

Channels

APIs

Credits

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

« 2019-11-13

2019-11-14

2019-11-15 »

Nick Message Date
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined #kotlin [12:40]
Jonopoly [Jonopoly!~Jonopoly@unaffiliated/jonopoly] has joined #kotlin [01:05]
raoul11_ [raoul11_!~raoul11_@unaffiliated/raoul11] has joined #kotlin [01:59]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [02:06]
Ladicek [Ladicek!~lthon@109.164.114.141] has joined #kotlin [02:21]
LearnAllTheTime [LearnAllTheTime!~LearnAllT@2601:cc:4000:9db0::d6d0] has joined #kotlin [02:54]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [03:07]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined #kotlin [04:25]
logcat [logcat!~logcat@82.196.8.212] has joined #kotlin [04:38]
Jonopoly [Jonopoly!~Jonopoly@unaffiliated/jonopoly] has joined #kotlin [04:49]
dreamreal [dreamreal!~jottinger@unaffiliated/dreamreal] has joined #kotlin [06:21]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [06:38]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [07:08]
macroprep [macroprep!~brotherco@cpe-172-193-104-55.qld.foxtel.net.au] has joined #kotlin [07:29]
Ladicek [Ladicek!~lthon@109.164.114.141] has joined #kotlin [07:53]
jhns [jhns!~jhns@2a01:4f8:121:31ef:b000::31] has joined #kotlin [07:53]
r4vi [r4vi!sid166794@gateway/web/irccloud.com/x-jkltbpxxugakmohj] has joined #kotlin [07:53]
cader [cader!~cader@204.12.247.35.bc.googleusercontent.com] has joined #kotlin [07:53]
jacob [jacob!~jacobirc@unaffiliated/jacob] has joined #kotlin [07:53]
Jetoni [Jetoni!~luser@unaffiliated/jetoni] has joined #kotlin [07:53]
Amun_Ra [Amun_Ra!~amun-ra@retro.rocks] has joined #kotlin [07:53]
vimclippy [vimclippy!~vimclippy@104.244.76.234] has joined #kotlin [07:53]
ziyourenxiang [ziyourenxiang!~ziyourenx@unaffiliated/ziyourenxiang] has joined #kotlin [07:53]
nghtshd [nghtshd!nghtshd@2601:ca:4000:43b3:6254:15a6:538d:7f2c] has joined #kotlin [07:56]
Dejan [Dejan!~dejan@unaffiliated/dejan] has joined #kotlin [08:09]
argo [argo!~argo@unaffiliated/argo] has joined #kotlin [08:10]
horribleprogram [horribleprogram!~horriblep@unaffiliated/nightcoder] has joined #kotlin [08:41]
TimMc Really, I think it was a mistake to go beyond using chisels on clay. [09:40]
Bombe Heh. Yeah, me too. I have two methods: [09:44]
Bombe public final <T> void setListeners(EventType<T> type, Class<? extends T>... listenerClasses) [09:44]
Bombe public final <T> void setListeners(EventType<T> type, T... listeners) [09:44]
Bombe Well, Hibernate has them. [09:44]
Bombe But how do I call any of them from Kotlin with an empty array? [09:45]
Bombe No matter what I do, the compiler complains it can?t decide what to call. [09:45]
Bombe eventListenerRegistry.setListeners(EventType.PRE_INSERT, emptyArray<PreInsertEventListener>() as Array<out PreInsertEventListener>) ? I mean, it doesn?t get any clearer than this, does it? [09:46]
Bombe Hmm. Solution: don?t use setListeners() but getEventListenerGroup(eventType).clear(). [10:03]
Bombe Of course with some casting because the group impl class is package-private put the group interface isn?t. [10:04]
Bombe Oh well. [10:04]
greggerz [greggerz!~greggerz@unaffiliated/greggerz] has joined #kotlin [10:26]
MassDebates [MassDebates!~MassDebat@unaffiliated/massdebates] has joined #kotlin [11:23]
raoul11__ [raoul11__!~raoul11_@unaffiliated/raoul11] has joined #kotlin [11:33]
Ankhers If I have a `Foo?`, what is the way I can do something when it has a value, and something else if it does not have a value? Something like if `(foo == null) { valid() } else { invalid() }`? [12:00]
dreamreal Ankhers: foo?.throw MyException() [12:01]
shrewdy i mean wont an if statement like in your example do what you're after? [12:07]
shrewdy or a when(foo) maybe [12:08]
dreamreal Ankhers: in terms of actually executing code... the if() would be the way to go [12:09]
shrewdy when(foo) { null -> invalid(); else -> valid() } also does the job [12:11]
Ankhers Oh okay. I just thought checking for null seemed dirty. Thanks! [12:12]
squirrel [squirrel!~mj@unaffiliated/squirrel] has joined #kotlin [12:13]
shrewdy well it depends on the context [12:14]
raoul11_ [raoul11_!~raoul11_@unaffiliated/raoul11] has joined #kotlin [12:22]
raoul11_ [raoul11_!~raoul11_@unaffiliated/raoul11] has joined #kotlin [12:27]
funeral [funeral!~Funeral@82.102.27.217] has joined #kotlin [12:31]
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined #kotlin [12:35]
zutat [zutat!5d85a2ee@unaffiliated/zutat] has joined #kotlin [12:49]
mikroskeem [mikroskeem!~markv@unaffiliated/mikroskeem] has joined #kotlin [01:26]
mikroskeem [mikroskeem!~markv@unaffiliated/mikroskeem] has joined #kotlin [01:33]
mikroskeem [mikroskeem!~markv@unaffiliated/mikroskeem] has joined #kotlin [01:39]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [01:43]
mikroskeem [mikroskeem!~markv@unaffiliated/mikroskeem] has joined #kotlin [01:50]
mikroskeem [mikroskeem!~markv@unaffiliated/mikroskeem] has joined #kotlin [01:57]
veegee [veegee!~veegee@ipagstaticip-3d3f7614-22f3-5b69-be13-7ab4b2c585d9.sdsl.bell.ca] has joined #kotlin [02:02]
zutat [zutat!5d85a2ee@unaffiliated/zutat] has joined #kotlin [02:05]
MassDebates_ [MassDebates_!~MassDebat@unaffiliated/massdebates] has joined #kotlin [02:10]
funeral [funeral!~Funeral@82.102.27.217] has joined #kotlin [02:20]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined #kotlin [02:33]
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined #kotlin [02:36]
bitwinery [bitwinery!~bitwinery@c-73-37-18-139.hsd1.wa.comcast.net] has joined #kotlin [02:57]
bitwinery [bitwinery!~bitwinery@c-73-37-18-139.hsd1.wa.comcast.net] has joined #kotlin [02:58]
iam730 [iam730!~iam730@c-24-6-215-59.hsd1.ca.comcast.net] has joined #kotlin [03:23]
MassDebates_ [MassDebates_!~MassDebat@unaffiliated/massdebates] has joined #kotlin [03:35]
iam730 [iam730!~iam730@c-24-6-215-59.hsd1.ca.comcast.net] has joined #kotlin [03:37]
shrewdy [shrewdy!~shrewdy@2a03:2880:11ff:1c::face:b00c] has joined #kotlin [03:57]
ChrisLane [ChrisLane!~irc@cpc119606-heme14-2-0-cust161.9-1.cable.virginm.net] has joined #kotlin [04:06]
ziyourenxiang [ziyourenxiang!~ziyourenx@unaffiliated/ziyourenxiang] has joined #kotlin [05:36]
ErnestG [ErnestG!sid75745@gateway/web/irccloud.com/x-hqyyvbbvmlxweyaj] has joined #kotlin [08:11]
j4cbo [j4cbo!sid186930@gateway/web/irccloud.com/x-zhxtiosilwwdqnfq] has joined #kotlin [08:13]
lineos [lineos!sid103986@gateway/web/irccloud.com/x-mwrorewpcibvyiti] has joined #kotlin [08:13]
jsvcycling [jsvcycling!sid369784@gateway/web/irccloud.com/x-uhbfvozrfkkgfzop] has joined #kotlin [08:13]
yawkat [yawkat!~yawkat@cats.coffee] has joined #kotlin [08:25]
macroprep [macroprep!~brotherco@cpe-172-193-104-55.qld.foxtel.net.au] has joined #kotlin [08:45]
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined #kotlin [08:53]