333
submitted 6 months ago* (last edited 6 months ago) by HiddenLayer555@lemmy.ml to c/programmer_humor@programming.dev

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
[-] dan@upvote.au 7 points 6 months ago

Can we talk about PHP functions with typehints too?

public static function foo(): string {

Practically every other language with similar syntax does this instead:

public static string foo() {
[-] sbv@sh.itjust.works 15 points 6 months ago

Rust and TypeScript use the return-type-at-the-end convention as well.

load more comments (8 replies)
this post was submitted on 19 Jun 2025
333 points (90.7% liked)

Programmer Humor

27945 readers
66 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS