+ 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 ^^
3 odpowiedzi
+ 5
https://code.sololearn.com/cSiEsH8Of2vw/?ref=app
Converting float to int if it has no decimals very much relies on Walrus here!
+ 1
Cool man! Walruz && Pythons for lyfe
+ 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?