![](https://lemmy.world/pictrs/image/b0448199-2503-445e-a459-65a5318fef97.jpeg)
![](https://programming.dev/pictrs/image/8140dda6-9512-4297-ac17-d303638c90a6.png)
Oof. Looks like this affected some other languages as well - somebody at Microsoft needs to up their documentation game, methinks.
Your friendly local programmer, uni student and *nix addict.
Oof. Looks like this affected some other languages as well - somebody at Microsoft needs to up their documentation game, methinks.
I liked GalaxQL.
Can’t beat Iosevka in my opinion. I use the Term variant for my shell as well.
Well, that’s to be expected - the implementation of map
expects a function that takes ownership of its inputs, so you get a type mismatch.
If you really want to golf things, you can tack your own map_ref
(and friends) onto the Iterator
trait. It’s not very useful - the output can’t reference the input - but it’s possible!
I imagine you could possibly extend this to a combinator that returns a tuple of (Input, ref_map'd output)
to get around that limitation, although I can’t think of any cases where that would actually be useful.
It wouldn’t be as relevant, since passing a function or method instead of a closure is much easier in Rust - you can just name it, while Ruby requires you to use the method
method.
So instead of .map(|res| res.unwrap())
you can do .map(Result::unwrap)
and it’ll Just Work™.
I don’t know about dangerous, but case-insensitive Unicode comparison is annoying, expensive and probably prone to footguns compared to a simple byte-for-byte equality check.
Obviously, it can be done, but I guess Linux devs don’t consider it worthwhile.
(And yes, all modern filesystems support Unicode. Linux stores them as arbitrary bytes, Apple’s HFS uses… some special bullshit, and Windows uses UTF-16.)
Care to clue me in? I spend my time far, far away from the web dev sphere :p
Because my university’s network is cringe, I’m unfortunately forced to run everything on a VPS.
This comes with a financial cost, and I have to carefully ration my computing power, but it does have some upsides - enough that I honestly prefer it now.
> online gambling
Cry harder