- cross-posted to:
- programminghumor@lemmy.world
- programmer_humor@programming.dev
- cross-posted to:
- programminghumor@lemmy.world
- programmer_humor@programming.dev
Made with KolourPaint and screenshots from Kate (with the GitHub theme).
Made with KolourPaint and screenshots from Kate (with the GitHub theme).
In Kotlin, you can have the type become implicit with the former syntax:
let text = number.toString()
(text
is aString
here)You can also do that in TypeScript
readonly a!: Foo; readonly b = bar.toFoo(); constructor(){ a = bar.toFoo(); }