HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-225 days agoWhy make it complicated?lemmy.mlimagemessage-square21linkfedilinkarrow-up13arrow-down10file-text
arrow-up13arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-225 days agomessage-square21linkfedilinkfile-text
minus-squaredan@upvote.aulinkfedilinkarrow-up0·25 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·25 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!