While watching RriverPod tutorial, I saw you have used this enhanced enums. That were strange to me, so I searched it on RUclips and found this. This is amazing and well explained.
I greatly appreciate the informative video you shared. The inclusion of multiple examples was particularly helpful. While I understand the criticisms of enhanced enums, I personally believe that they offer a valuable level of type safety. I am also hopeful for future improvements in this area. Could you please explain the specific benefits of dynamically instantiating enums as demonstrated in Swift? (I would also like to mention that, in my experience, enums in TypeScript are not as well-implemented.)
I'm sorry, but I find that these Dart Enhanced Enums fundamentally make more sense than the Swift Enums you demonstrated Fundamentally, enums should be hard coded. The swift enums you showed are basically doing exactly what you can do with a class There's a reason why Enums exist and Dart Enums are more true to that compared to the others I could be wrong, but I've used these, and watching you teach me more about them makes them even more interesting I could be missing something about the Swift Enums, but from that example you made, they're basically just classes. What I'm trying to say is, isn't the whole point of enums for them to be fixed values?? So, dynamic assignment of values kinda defeats the whole purpose. Other than that, great course, sir
While watching RriverPod tutorial, I saw you have used this enhanced enums. That were strange to me, so I searched it on RUclips and found this. This is amazing and well explained.
I didn't knew I could use enum in so many different ways, time to improve the codebase. Thanks Vandad!
I’m glad you find this useful 😊
I greatly appreciate the informative video you shared. The inclusion of multiple examples was particularly helpful. While I understand the criticisms of enhanced enums, I personally believe that they offer a valuable level of type safety. I am also hopeful for future improvements in this area. Could you please explain the specific benefits of dynamically instantiating enums as demonstrated in Swift?
(I would also like to mention that, in my experience, enums in TypeScript are not as well-implemented.)
Keep going Vandad! TY!
Amazing sir
I'm sorry, but I find that these Dart Enhanced Enums fundamentally make more sense than the Swift Enums you demonstrated
Fundamentally, enums should be hard coded. The swift enums you showed are basically doing exactly what you can do with a class
There's a reason why Enums exist and Dart Enums are more true to that compared to the others
I could be wrong, but I've used these, and watching you teach me more about them makes them even more interesting
I could be missing something about the Swift Enums, but from that example you made, they're basically just classes.
What I'm trying to say is, isn't the whole point of enums for them to be fixed values?? So, dynamic assignment of values kinda defeats the whole purpose.
Other than that, great course, sir
"Or as i would like to call it : uninhanced enum 😂😂😂😂😂😂"
Right? 😅
Dart team should watch your videos😅
I learned a lot! Thanks @VandadNP