• 0 Posts
  • 104 Comments
Joined 2 years ago
cake
Cake day: September 2nd, 2023

help-circle



  • After reading my comment. You are right, it is not impossible.

    However, it still is not a good indicator for minimum wage.

    IMO, minimum wage should be based on expenses. That is, it should cover what you need to live a decent life.

    That definition is based on other’s income. Imagine you live in a country where housing is 1€/month and food is 0.10€/month. The rest of the costs scale accordingly. Yet it is an incredibly rich country and the median income is 10000€/year. Would you say that a yearly wage of 120€/year is risk-of-poverty? It’s 0.001% of the median income, yet it can provide for 10 years of housing in 1 year of work.





  • As long as you call .collect() on it at the end, don’t need to write the entire type as it is a method with a generic parameter, and returns that generic.

    The intermediate iterators though, those are hell. Especially if you pass it to a lambda and for some reason rust can’t infer the type.

    I once came across a parsing library that did the parsing with basically just the type system. It was absolute hell to debug and build. Types of parsers would be hundreds of characters long. It would take tens of minutes to build a simple parser.

    I don’t know much much time it would take to build a complex parser, since it was unable to. it reached the max type generic depth of the rust compiler, and would just refuse to compile.

    I believe it was called Chomsky or Chumsky or something like that. Discovering nom was a blessing.