Shawn
07/15/2018, 5:02 PMwith
, do you add a space after it so it looks like control flow?
1️⃣
with (context) {
foo()
bar = 42
}
2️⃣
with(context) {
foo()
bar = 42
}
ahegazy
07/16/2018, 8:22 AMopen class BaseResponse {
val isSuccess: Boolean
get() = errorCode == 0
}
2️⃣
open class BaseResponse {
fun isSuccess() = errorCode == 0
}
amanda.hinchman-dominguez
07/19/2018, 1:18 AMShawn
07/19/2018, 4:16 AMgojf
work with Kotlin too or what?elect
07/19/2018, 8:39 AMcodeslubber
07/19/2018, 7:04 PMpavel
07/19/2018, 9:30 PMdh44t
07/20/2018, 1:21 AMkenkyee
07/20/2018, 12:54 PMgabrielfv
07/20/2018, 10:26 PMhttps://youtu.be/jtHhvcdjNWw▾
napperley
07/20/2018, 10:51 PMkarelpeeters
07/20/2018, 10:54 PMavolkmann
07/21/2018, 7:31 AMsksk
07/24/2018, 10:15 AMgildor
07/24/2018, 10:21 AMjust have structs insteadSo actually value types, or I miss some key difference? It’s also bad idea to introduce potentially incompatible implementation of value types only for Native, because when value types will be available on JVM you want to have the same API as native
ygrama
07/24/2018, 6:51 PMaksh1618
07/26/2018, 2:46 PMrakeeb
07/26/2018, 6:23 PMapply
, with
, etc. couldn't find it on the public repo. does anyone know about it?Prateek
07/27/2018, 8:53 AMelect
07/27/2018, 10:36 AMinline class DrawMode(val i: Int)
val Triangles = DrawMode(GL_TRIANGLES)
...
fun glDrawArray(mode: DrawMode, count: Int) = ..
whenever I type `glDrawArray(`and I call for type completition all DrawMode
top level members will be available and suggested as first ones.
I like this because I don't have to type glDrawArray(DrawMode.Triangles, ..)
. I know I can work on the import, but this is overhead for me.
Disadvantage, final user can of course implement it's own/additional DrawMode
(not really a vs, since this gives the possibility for the user to add some newer enums from the latest API, where I still didnt catch on) and they are not guaranteed to be unique.
Do you see other differences? What's your feeling about this? I'm looking especially at you @gildor @karelpeeters @louiscad @diesieben07 🙂yaakov
07/27/2018, 4:49 PMhttps://www.youtube.com/watch?v=bMM7wNVAeEc▾
bjonnh
07/29/2018, 6:42 PMursus
07/29/2018, 10:43 PMpoohbar
07/30/2018, 3:05 PMShawn
07/30/2018, 3:07 PMoshai
07/30/2018, 5:51 PMkotlinlang.slack
team now has full history?apatrida
07/30/2018, 8:12 PMelect
07/31/2018, 1:12 PMShawn
08/01/2018, 2:12 PM[Foo, Bar, , ]
if I leave out the dropShawn
08/01/2018, 2:12 PM[Foo, Bar, , ]
if I leave out the dropkarelpeeters
08/01/2018, 2:20 PMShawn
08/01/2018, 2:21 PM