Your friendly local programmer, uni student and *nix addict.

  • 0 Posts
  • 55 Comments
Joined 1 year ago
cake
Cake day: June 26th, 2023

help-circle









  • 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.






  • Most of the more exotic colors (such as green) are caused by various optical tricks.

    Physically speaking, all true stars are roughly one of these colors:

    • Red
    • Orange
    • Yellow
    • White
    • Blue

    The exact color of a star depends on its size/temperature. Red stars are the coolest, while blue stars are the hottest.





  • It may nominally have more secure defaults than Firefox (although I doubt it’s better in the areas that matter.)

    The problem is that the creators have demonstrated (by secretly injecting referral/affiliate links into URLs, and also by being crypto shills) that they are entirely untrustworthy. In a piece of software as security and privacy critical as a browser, such behavior is unacceptable.