+ 1

Do you use the := often in your code??

Walrus operator. So cute I love it. It seems to one liner things like a terniary (I think its called?) operator in PHP. How often in your everyday code do you use this? As I remember thinking a year ago I could use terniary operators obsessively throughout my Laravel application code ^^

29th Jun 2022, 2:21 AM
ρү૨œdԌ૨ ×
ρү૨œdԌ૨ × - avatar
3 Respostas
+ 5
https://code.sololearn.com/cSiEsH8Of2vw/?ref=app Converting float to int if it has no decimals very much relies on Walrus here!
30th Jun 2022, 11:50 AM
🇺🇦 GUMBALL 🇺🇦 [Dead account]
+ 1
Cool man! Walruz && Pythons for lyfe
29th Jun 2022, 3:08 AM
ρү૨œdԌ૨ ×
ρү૨œdԌ૨ × - avatar
+ 1
🇺🇦 GUMBALL 🇺🇦 check out my version of a similar idea: https://code.sololearn.com/cz8A9LD0gD1W Ironic we have done the same code bits but different. I dont know what you mean by the walrus operator being necessary as I dont recall the reason for my own code lol. Also what the heck am I looking at with your code?
30th Jun 2022, 11:21 PM
ρү૨œdԌ૨ ×
ρү૨œdԌ૨ × - avatar