93

Made with KolourPaint and screenshots from Kate (with the GitHub theme).

you are viewing a single comment's thread
view the rest of the comments
[-] ByteWelder@feddit.nl 5 points 4 days ago

In Kotlin, you can have the type become implicit with the former syntax: let text = number.toString() (text is a String here)

[-] Witchfire@lemmy.world 3 points 3 days ago* (last edited 3 days ago)

You can also do that in TypeScript

readonly a!: Foo;
readonly b = bar.toFoo();

constructor(){
    a = bar.toFoo();
}
this post was submitted on 19 Jun 2025
93 points (86.6% liked)

Programmer Humor

36707 readers
76 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS