Readability of code that human writes is far more important to converting it for machines. Thanks for sharing what is offered but its like spreading the butter with your folk lifter is not needed but can be done.
@MilanJovanovicTechАй бұрын
"spreading the butter with your folk lifter" 😂
@repkins16 күн бұрын
While switch expressions does make code more consice, it comes with readability price.
@MilanJovanovicTech16 күн бұрын
Is it not readable?
@WDGKuuramaАй бұрын
Noooo, it just needed the one liner func syntax with '=>' at the second line to be perfect 😢
@MilanJovanovicTechАй бұрын
Oh well...
@norlyssuarezvalderrama5330Ай бұрын
Great 👍
@MilanJovanovicTechАй бұрын
Thank you! Cheers!
@YehorBachurinDevАй бұрын
👍
@MilanJovanovicTechАй бұрын
👍
@Claucker7Ай бұрын
not readable
@MilanJovanovicTechАй бұрын
Ok
@vijayarajan-bt5fkАй бұрын
Why _F only for f finally??
@MilanJovanovicTechАй бұрын
It's how you write the default case
@rikudouensofАй бұрын
I would not advice this. Codes should be readable for the future people
@JollyGiant19Ай бұрын
But this is readable
@rikudouensofАй бұрын
@@JollyGiant19 my take is that code should be in a way that junior devs or intern devs can understand
@ryan-heathАй бұрын
Future people would thank you when you don’t use (then) outdated constructs. 😉
@WDGKuuramaАй бұрын
Not using new syntax while lew devs will most likely use them because you think it wouldn't be readable sounds very wrong. Especially with such a simple and common pattern. It just looks that way on a lot of other languages, especially more on functional programming ones.
@rikudouensofАй бұрын
@@WDGKuurama it alswys starts with the simple patterns untill someone cooks technical dept