this is a very fun idea 🤓
this is a very fun idea 🤓
Works very very well, the only reason I don't daily drive it is because suspend power is not as good as macOS yet
Works very very well, the only reason I don't daily drive it is because suspend power is not as good as macOS yet
(but in my defense, let else is a more direct substitute to unwrap that if else)
(but in my defense, let else is a more direct substitute to unwrap that if else)
I would say that having a possibility of your program crashing when calling a function is a worse violation of LoD, no? Saying "this function might not have something to return" doesn't break isolation, I think
I would say that having a possibility of your program crashing when calling a function is a worse violation of LoD, no? Saying "this function might not have something to return" doesn't break isolation, I think
imo unwrap is exclusively valid for prototyping 🤷
imo unwrap is exclusively valid for prototyping 🤷
In this case, I think it's best to just let the formatter do its thing 🤷. Fighting it is a bit Sisyphean imo
In this case, I think it's best to just let the formatter do its thing 🤷. Fighting it is a bit Sisyphean imo
buuut actually returning something like anyhow::Result might make the code cleaner!you only need to do ? instead of .unwrap(), and you get all the benefits above ^^
buuut actually returning something like anyhow::Result might make the code cleaner!you only need to do ? instead of .unwrap(), and you get all the benefits above ^^
unwrap is generally used for the "I can't be bothered to handle this rn" case
unwrap is generally used for the "I can't be bothered to handle this rn" case
but also buildRustPackage is very much usable
crane is just… too much for me
but also buildRustPackage is very much usable
crane is just… too much for me