this post was submitted on 19 Jun 2025
100 points (86.8% liked)

Programmer Humor

39190 readers
123 users here now

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

Rules:

founded 6 years ago
MODERATORS
 

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
[–] Witchfire@lemmy.world 3 points 5 months ago* (last edited 5 months ago)

You can also do that in TypeScript

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

constructor(){
    a = bar.toFoo();
}