

FYI, Tidal is approximately the same price as Spotify and there are several tools floating around on GitHub which will allow you to download high quality flac files from that service.


FYI, Tidal is approximately the same price as Spotify and there are several tools floating around on GitHub which will allow you to download high quality flac files from that service.


Emperor Shōwa



Not really, because rust doesn’t have exceptions. Instead you are encouraged to handle every possible case with pattern matching. For example:
fn maybe_add_one(number: Option<u8>) -> u8 {
match number {
None => 0,
Some(i) => i + 1,
}
}
Option<u8> is a type which can either be some 8bit unsigned integer, or none. It’s conceptually similar to a Nullable<int> in C#.
In C# you could correctly implement this like:
public int MaybeAddOne(int? number)
{
if (number.HasValue)
{
return number.Value + 1;
}
return 0;
}
In rust, you can call Unwrap on an option to get the underlying value, but it will panic if the value is None (because None isn’t a u8):
fn maybe_add_one(number: Option<u8>) -> u8 {
number.unwrap() + 1
}
In some cases unwrap could be useful if you don’t care about a panic or if you know the value can’t be None. Sometimes it’s just used as a shortcut. You can likewise do this in C#:
public int MaybeAddOne(int? number)
{
return number.Value + 1;
}
But this throws an exception if number is null.
A panic isn’t the same as an exception though, you can’t ‘catch’ a panic, it’s unrecoverable and the program will terminate more-or-less immediately.
Rust provides a generic type Result<T, E>, T being a successful result and E being some error type, which you are encouraged to use along with pattern matching to make sure all cases are handled.
Yes it is. Typically you’d do some pattern matching to handle every possible case, but Unwrap is often used as a shortcut.
It’s more like a method that can throw an exception. Rust doesn’t really have exceptions, but if you have a Result<T> or Option<T> type you can Unwrap it to get just the T. But if there’s no T to get (in the case of an Error type for Result for None for Option) the call panics.


Leto II Atreides


Well no, the Canonical distribution is Ubuntu.
/s
Rotifers are multicellular animals and have organs, and they are a lot smaller than this. Maybe not as cute though.


My favorite Master System memory is playing Double Dragon with my dad.


There aren’t really any ways to remove SC justices in the law. Thats exactly why we on the left have been raising concern about these appointees for so long.
Well, they can hypothetically be impeached, but that’s unlikely to happen with the current Congress.
For wayland applications you can try waypipe too, which I’ve found works for most things.


This is giving Distant Worlds vibe (which is a good thing).
These are some of the closest relatives of the vertebrates, by the way.


I wasn’t referring to crime rates at all, just the dangers of American traffic infrastructure. And in that context I’m not interested in comparing the rates of traffic injury/death over the past X years but with other developed countries.


The primary issue isn’t that American children are less capable but that American neighborhoods are unsafe. In many suburban developments in the United States it isn’t safe to walk to anywhere of interest (excepting the neighboring houses). Residential areas are often separated from commercial and recreational areas by high speed automobile traffic lanes with little-to-no pedestrian infrastructure.


That’s not capitalism, that’s a market.
If I had to venture a guess I’d say it was probably the tower at nearby Minot AFB. Perhaps the commercial flight’s approach took them over the bases’ airspace or something.
Don’t take career advice from Joe Piscopo.