Info

Login

Channels

APIs

Credits

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

« 2019-01-08

2019-01-09

2019-01-10 »

Nick Message Date
t2mkn [t2mkn!~t2mkn@43.226.3.237] has joined #kotlin [12:16]
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined #kotlin [01:11]
t2mkn [t2mkn!~t2mkn@43.226.3.237] has joined #kotlin [01:13]
ppareit [ppareit!~ppareit@d5152f254.static.telenet.be] has joined #kotlin [01:44]
Melvin [Melvin!~Metamelvi@x527179d8.dyn.telefonica.de] has joined #kotlin [01:50]
Melvin [Melvin!~Metamelvi@216.121.113.82.net.de.o2.com] has joined #kotlin [01:53]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [01:54]
Melvin [Melvin!~Metamelvi@216.121.113.82.net.de.o2.com] has joined #kotlin [01:57]
Tazmain [Tazmain!~Tazmain@unaffiliated/tazmain] has joined #kotlin [02:05]
Melvin [Melvin!~Metamelvi@x527179d8.dyn.telefonica.de] has joined #kotlin [02:10]
Melvin [Melvin!~Metamelvi@x527179d8.dyn.telefonica.de] has joined #kotlin [02:10]
thana oh regarding my questio from yesterday: https://youtrack.jetbrains.net/issue/KT-26792 [02:16]
Pitel [Pitel!~pitel@fw2o.masterinter.net] has joined #kotlin [02:53]
Ladicek [Ladicek!~lthon@109.164.114.141] has joined #kotlin [03:07]
secretspecter hello [03:19]
ppareit [ppareit!~ppareit@d5152f254.static.telenet.be] has joined #kotlin [03:20]
secretspecter wondering why when I choose run from intellij my application works but if I run with gradle I get "java.lang.NoClassDefFoundError: kotlinx/serialization/json/JSON" [03:20]
secretspecter but only after exercising that route [03:21]
Melvin [Melvin!~Metamelvi@216.121.113.82.net.de.o2.com] has joined #kotlin [03:55]
ppareit [ppareit!~ppareit@d5152f254.static.telenet.be] has joined #kotlin [03:56]
TAsn [TAsn!~tom@enlightenment/developer/TAsn] has joined #kotlin [04:41]
TAsn Heya, how are you? How tan I disable all of these checks: "kotlin.TypeCastException: null cannot be cast to non-null type kotlin." (compiler option)? I know they are important, but I've just migrated my project to kotlin and I don't want it crashing for my users because I mistakenly put some times as non-nullable... I want to fix everything, but before that, I want it to stop crashing for my users. Thanks! [04:43]
yawkat not possible [04:43]
TAsn OK, thanks! [04:43]
yawkat some of the errors may be covered by -Xno-call-assertions -Xno-param-assertions -Xno-receiver-assertions [04:46]
yawkat however there is no general option [04:46]
TAsn already have those, but I'm in particular looking for disabling X = bla as String [04:47]
TAsn where bla can be null [04:47]
ppareit [ppareit!~ppareit@d5152f254.static.telenet.be] has joined #kotlin [04:55]
H-K [H-K!~h_k@bl5-128-147.dsl.telepac.pt] has joined #kotlin [05:10]
vikikas [vikikas!~vikas@2a02:1205:34e1:60b0:8dde:9419:e8e8:1d61] has joined #kotlin [05:21]
waz [waz!~waz@pdpc/supporter/active/waz] has joined #kotlin [05:21]
thana TAsn: as try `x = bla!!` [05:22]
thana -as [05:22]
ppareit [ppareit!~ppareit@d5152f254.static.telenet.be] has joined #kotlin [05:22]
thana oh and read https://kotlinlang.org/docs/reference/null-safety.html#the--operator [05:25]
thana thana's title: "Null Safety - Kotlin Programming Language" [05:25]
TAsn thana, I want the opposite. I want bla as? String (or as String?) [05:27]
TAsn the problem is that my code was converted automatically by the Andorid Studio plugin, so it's riddled with direct casts (every time I had an upcast in java) and with !! [05:28]
TAsn from what I understand !! is a shortcut for "check it's not null, and if it is, throw an exception". My problem is that I *don't* want the exception (while still cleaning up the codebase) [05:28]
thana huh? the opposite? it's no problem to treat a non-nullable type as its nullable counterpart [05:29]
yawkat thana: they understand the kotlin type system. they want to bypass it. [05:30]
thana well at least in the latest version of kotlin... don't know if that hast changed [05:30]
thana ok *shrug* [05:30]
TAsn thana, I don't want to bypass it because I hate it, quite the contrary [05:30]
TAsn It's just that I've migrated a massive codebase, and the automatic migration hasn't done a perfect job [05:30]
TAsn and users are getting crashes that they shouldn't be getting [05:31]
TAsn just because the migrator doesn't treat Java casting correctly when it comes to nullability [05:31]
yawkat prefers just slowly migrating with mixed-language code bases [05:32]
TAsn yawkat, normally I'd agree, but there were circumstances that made it impossible, or at the very least, undesirable. [05:32]
yawkat fair enough, it's your project, you know more about it :D [05:33]
TAsn Anyhow, I'll probably review everything tonight and fix it. So in a way, it's better that I wasn't able to suppress things, because now I'm forced to fix it properly asap. :P [05:40]
Melvin [Melvin!~Metamelvi@x59cc87ad.dyn.telefonica.de] has joined #kotlin [05:41]
ppareit [ppareit!~ppareit@d5152f254.static.telenet.be] has joined #kotlin [05:43]
H-K [H-K!~h_k@bl5-128-147.dsl.telepac.pt] has joined #kotlin [06:18]
hoijui [hoijui!~hoijui@200116b84688150092553fa93af95cb0.dip.versatel-1u1.de] has joined #kotlin [06:34]
TAsn parted the channel: "WeeChat 2.3" [06:40]
thana why i dont like inheritance? overriding fun makes me sad haha [07:11]
H-K [H-K!~h_k@bl5-128-147.dsl.telepac.pt] has joined #kotlin [07:23]
Melvin [Melvin!~Metamelvi@x59cc827c.dyn.telefonica.de] has joined #kotlin [07:30]
Melvin [Melvin!~Metamelvi@x59cc827c.dyn.telefonica.de] has joined #kotlin [07:35]
H-K [H-K!~h_k@bl5-128-147.dsl.telepac.pt] has joined #kotlin [07:39]
Melvin [Melvin!~Metamelvi@x59cc827c.dyn.telefonica.de] has joined #kotlin [07:40]
lightslategrey [lightslategrey!~lightslat@188.234.12.124] has joined #kotlin [07:40]
Melvin [Melvin!~Metamelvi@x59cc827c.dyn.telefonica.de] has joined #kotlin [07:45]
Metamelvin [Metamelvin!~Metamelvi@x527179cd.dyn.telefonica.de] has joined #kotlin [08:09]
Metamelvin [Metamelvin!~Metamelvi@x527179cd.dyn.telefonica.de] has joined #kotlin [08:12]
Addax thana: Inheritance done well just means you have a logical refinement of what objects in the tree do [08:12]
thana yes... i just meant to do a bad joke... obiously i even failed with that ;) [08:23]
Addax hard to tell on IRC when people are trying to be funny sometimes [08:33]
Addax and honestly, rereading it it's a lot funnier than it was on first read-through [08:34]
Addax that was actually pretty elegant [08:34]
Addax I just... missed it [08:34]
thana thhank you :-D [08:38]
Tazmain [Tazmain!~Tazmain@unaffiliated/tazmain] has joined #kotlin [09:11]
lightslategrey I am trying to embed KotlinScript into java android app. And I don't understand much about java, android or kotlinscript. Can anyone suggest anything? [09:12]
lightslategrey here are my build.gradle and relevant log records: https://hastebin.com/raw/ikesuwiyiq [09:13]
lightslategrey it seems "org.jetbrains.kotlin.cli.common.repl.KotlinJsr223JvmScriptEngineFactoryBase" is missing, but I don't know which modules to include [09:15]
waz [waz!~waz@pdpc/supporter/active/waz] has joined #kotlin [09:18]
lightslategrey https://hastebin.com/raw/obipalatom I also included the META-INF/services part [09:21]
greggerz [greggerz!~greggerz@unaffiliated/greggerz] has joined #kotlin [10:04]
DTZUZO [DTZUZO!~DTZUZO@S0106bcd16584b0aa.vs.shawcable.net] has joined #kotlin [10:07]
jdlee Addax is just really slow most of the time :P [10:22]
thana -D [10:23]
edge_eng [edge_eng!~edge_eng@unaffiliated/edge-eng/x-8536881] has joined #kotlin [11:27]
H-K [H-K!~h_k@bl5-128-147.dsl.telepac.pt] has joined #kotlin [11:55]
H-K [H-K!~h_k@bl5-128-147.dsl.telepac.pt] has joined #kotlin [12:16]
ppareit [ppareit!~ppareit@178-117-89-32.access.telenet.be] has joined #kotlin [12:16]
Dejan [Dejan!~dejan@unaffiliated/dejan] has joined #kotlin [12:25]
funeral [funeral!~Funeral@169.89-10-117.nextgentel.com] has joined #kotlin [12:41]
iam730 [iam730!~iam730@c-24-6-215-59.hsd1.ca.comcast.net] has joined #kotlin [01:03]
orbyt_ [orbyt_!~orbyt@199-116-74-10.grio.static.monkeybrains.net] has joined #kotlin [01:10]
ovalseven8 [ovalseven8!~ovalseven@unaffiliated/ovalseven8] has joined #kotlin [01:24]
ovalseven8_ [ovalseven8_!~ovalseven@unaffiliated/ovalseven8] has joined #kotlin [01:39]
ChrisLane [ChrisLane!~irc@cpc119606-heme14-2-0-cust161.9-1.cable.virginm.net] has joined #kotlin [01:48]
orbyt_ [orbyt_!~orbyt@199-116-74-10.grio.static.monkeybrains.net] has joined #kotlin [01:52]
ovalseven8_ Assume I have four variables a, b, c and d which are of type Int?. How can I write "if a != null and b != null and c!= null and d != null" more precisely [02:11]
ppareit [ppareit!~ppareit@178-117-89-32.access.telenet.be] has joined #kotlin [02:17]
orbyt_ That is how you would write it. Additionally, you could write an extension function producing the behavior you desire for some number of variables. [02:26]
ovalseven8_ orbyt_, Probably "listOf(a, b, c).all { it != null }" [02:28]
thana you could write listOf(a, b, c, d).all { it != null } which might pay of you have enough vars [02:28]
thana ) [02:28]
ovalseven8_ ) [02:28]
Addax I don't know how the original expression isn't precise [02:32]
jic parted the channel: "Leaving" [02:47]
thana it is perfectly precise but not concise :) [02:49]
orbyt_ [orbyt_!~orbyt@2607:f598:b1b2:fe00::1771] has joined #kotlin [03:59]
orbyt_ [orbyt_!~orbyt@199-116-74-10.grio.static.monkeybrains.net] has joined #kotlin [04:02]
Melvin [Melvin!~Metamelvi@2a02:8070:d19a:3200:c2ee:fbff:fe59:d81e] has joined #kotlin [04:16]
Metamelvin [Metamelvin!~Metamelvi@134.3.205.137] has joined #kotlin [05:00]
Metamelvin [Metamelvin!~Metamelvi@134.3.205.137] has joined #kotlin [05:24]
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined #kotlin [05:48]
iam730 [iam730!~iam730@173.239.198.49] has joined #kotlin [05:49]
rruizt [rruizt!~rruizt@5354177C.cm-6-5a.dynamic.ziggo.nl] has joined #kotlin [05:50]
waz [waz!~waz@pdpc/supporter/active/waz] has joined #kotlin [06:01]
secretspecter [secretspecter!~Thunderbi@2604:2000:1343:1de:dd0:4847:f4b2:1250] has joined #kotlin [07:05]
xlxnnx [xlxnnx!~xlxnnx@192.64.26.116] has joined #kotlin [07:40]
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined #kotlin [09:08]
KeyJoo [KeyJoo!~KeyJoo@62.176.8.182] has joined #kotlin [09:19]
KeyJoo [KeyJoo!~KeyJoo@62.176.8.182] has joined #kotlin [09:25]
H-K [H-K!~h_k@bl5-128-147.dsl.telepac.pt] has joined #kotlin [09:27]
H-K [H-K!~h_k@bl5-128-147.dsl.telepac.pt] has joined #kotlin [09:28]
KeyJoo [KeyJoo!~KeyJoo@62.176.8.182] has joined #kotlin [09:49]
ppareit [ppareit!~ppareit@178-117-89-32.access.telenet.be] has joined #kotlin [10:25]
greves [greves!~greves@36-226-181-86.dynamic-ip.hinet.net] has joined #kotlin [10:28]
greves what is the "correct" way to set a member val using a regular constructor? lateinit? use a var? [10:28]
greves I'm currently avoiding the shorthand syntax because I don't understand it well enough [10:29]
ppareit [ppareit!~ppareit@ptr-cdbjikpv8fq7qltqnmu.18120a2.ip6.access.telenet.be] has joined #kotlin [10:32]
theWhisper_ [theWhisper_!~quassel@unaffiliated/thewhisper/x-7482734] has joined #kotlin [10:45]
greves What is "circular delegation" ? [10:56]
djhworld [djhworld!~djhworld@90.242.116.219] has joined #kotlin [11:37]
jaysonsantos [jaysonsantos!~quassel@62-210-110-65.rev.poneytelecom.eu] has joined #kotlin [11:42]
ppareit [ppareit!~ppareit@178-117-89-32.access.telenet.be] has joined #kotlin [11:44]