Info

Login

Channels

APIs

Credits

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

« 2021-10-17

2021-10-18

2021-10-19 »

Nick Message Date
Shapeshifter [Shapeshifter!~Shapeshif@parakeet.ifi.uzh.ch] has joined #kotlin [12:30]
Svitkona [Svitkona!~Svitkona@157.245.38.135] has joined #kotlin [12:31]
explodes [explodes!~explodes@user/explodes] has joined #kotlin [12:31]
_xor [_xor!~xor@72.49.199.147] has joined #kotlin [12:40]
Square [Square!~a@178.62.91.8] has joined #kotlin [02:55]
Matthijs [Matthijs!~quassel@77-61-103-58.biz.kpn.net] has joined #kotlin [03:02]
daoudr [daoudr!~daoudr@2a02:1205:c681:1650:2213:cc7f:a040:3a92] has joined #kotlin [06:18]
jsmooth [jsmooth!~quassel@user/jsmooth] has joined #kotlin [07:22]
koevet [koevet!~koevet@ip5b4113de.dynamic.kabel-deutschland.de] has joined #kotlin [08:40]
jsmooth [jsmooth!~quassel@user/jsmooth] has joined #kotlin [09:09]
jsmooth How does this work? get() = user != null [09:26]
FuzzyBottom [FuzzyBottom!~FuzzyBott@d207-6-36-158.bchsia.telus.net] has joined #kotlin [10:06]
cheeser gonna need some context [10:17]
jsmooth val isLoggedIn: Boolean [10:25]
jsmooth get() = user != null [10:25]
jsmooth I'm trying to move to Kotlin from Java and having some confusing parts [10:26]
jsmooth Though that may be a valid Java line too [10:26]
cheeser it's definitely not valid java :) [10:27]
cheeser so what part of that is confusing? [10:27]
jsmooth I would be expecting something to be between the parathesis [10:28]
cheeser why? it's a get. gets don't take arguments [10:28]
jsmooth So it's right-to-left assignment? [10:29]
cheeser it's not an assignment. it's a function. [10:29]
jsmooth Oh, it's shortcode for a condition [10:29]
cheeser you're defining the get function for that property. [10:29]
jsmooth Yes, get is defined as user if user is not null [10:30]
cheeser no. that get returns a Boolean [10:30]
jsmooth Oh, yes [10:30]
cheeser read it like this fun get() { return user != null } [10:30]
jsmooth Yes. I just got that [10:30]
cheeser wait until you see the set() :) [10:31]
koevet [koevet!~koevet@ip5b4113de.dynamic.kabel-deutschland.de] has joined #kotlin [10:38]
jsmooth Maybe you can help with line 8 for identifer expected https://gist.github.com/longcurve/9569c5aaedb3e46943e0c28cf331acff [10:51]
cheeser what's the actual error? [10:52]
zitat [zitat!~zitat@user/zitat] has joined #kotlin [12:29]
jsmooth [jsmooth!~quassel@user/jsmooth] has joined #kotlin [12:34]
jsmooth It only says <identifer> expected https://gist.github.com/longcurve/9569c5aaedb3e46943e0c28cf331acff [12:35]
deepy [deepy!deepy@user/deepy] has joined #kotlin [01:33]
koevet [koevet!~koevet@ip5b4113de.dynamic.kabel-deutschland.de] has joined #kotlin [02:11]
cheeser when you run mvn, what does it say? [02:42]
cheeser or gradle [02:42]
koevet [koevet!~koevet@ip5b4113de.dynamic.kabel-deutschland.de] has joined #kotlin [02:53]
Betal [Betal!~Betal@user/betal] has joined #kotlin [04:29]
Matthijs [Matthijs!~quassel@77-61-103-58.biz.kpn.net] has joined #kotlin [04:37]
Matthijs [Matthijs!~quassel@77-61-103-58.biz.kpn.net] has joined #kotlin [05:25]
Matthijs [Matthijs!~quassel@77-61-103-58.biz.kpn.net] has joined #kotlin [06:49]
Matthijs [Matthijs!~quassel@77-61-103-58.biz.kpn.net] has joined #kotlin [08:29]
rannnn8888 [rannnn8888!~rannnn888@bzq-79-182-162-211.red.bezeqint.net] has joined #kotlin [09:05]