Live data from Hacker News

My least favorite Rust type

ridiculousfish.com

11–20 of 298 posts

Re: My least favorite Rust type

#12
For literals, clippy will catch this by default:

  error: this range is empty so it will yield no values
   --> src/main.rs:2:9
    |
  2 | let x = 5..0;
    |         ^^^^
    |
    = note: `#[deny(clippy::reversed_empty_ranges)]` on by default
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#reversed_empty_ranges
  help: consider using the following if you are attempting to iterate over this range in reverse
    |
  2 | let x = (0..5).rev();
    |         ^^^^^^^^^^^^

Re: My least favorite Rust type

#15

Quoted post unavailable.

I don't know anything about Johnathan Blow, so could you explain why you have a hard time taking him seriously about PL design?

Because I can't download a compiler for his language and try out his ideas. I've designed fantasy programming languages, too, but you don't see me telling everyone on the internet that will listen to me about them, dragging other PL designers that have actually released working code through the mud as I do.

It's a simple matter of put up or shut up.

Re: My least favorite Rust type

#20

Earlier quoted context omitted.

I don't know anything about Johnathan Blow, so could you explain why you have a hard time taking him seriously about PL design?

Because I can't download a compiler for his language and try out his ideas. I've designed fantasy programming languages, too, but you don't see me telling everyone on the internet that will listen to me about them, dragging other PL designers that have actually released working code through the mud as I do. It's a simple matter of put up or shut up.

I neither know Jonathan Blow, nor understand why he must create a programming language to critique them - is he someone who works on programming languages as his day job, for some time, yet somehow has avoided enforcing his opinions on himself?
Post reply on HN