HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-28 days agoWhy make it complicated?lemmy.mlimagemessage-square21linkfedilinkarrow-up12arrow-down10file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up12arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-28 days agomessage-square21linkfedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-squaredan@upvote.aulinkfedilinkarrow-up0·8 days agoCan 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() {
minus-squaresbv@sh.itjust.workslinkfedilinkEnglisharrow-up0·8 days agoRust and TypeScript use the return-type-at-the-end convention as well.
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() {
Rust and TypeScript use the return-type-at-the-end convention as well.
Python too.
And Kotlin.
AND MY AXE!