Live data from Hacker News

My least favorite Rust type

ridiculousfish.com

81–90 of 298 posts

Re: My least favorite Rust type

#81
post #3

I'm only just learning Rust so I don't know much about Rust development, but what are the chances that any of the suggestions listed at the end make it into the language?

I'd love to see RangeInclusive fixed in the manner described. Part of what's blocking such a fix is that we have hard backwards compatibility guarantees. We'd have to do some kind of edition-based transition, where ranges start desugaring to a different type in a new edition than they did in the previous edition. We could do that, and there are various discussions going on to consider such approaches, but we're somew…

Then again, there's no Rust ABI...

Re: My least favorite Rust type

#83

Earlier quoted context omitted.

How long do you think it takes to release a working prototype when you already have one?

Maybe he has different standards than you? I assume Jai will be similar to his games as far as attention to details goes. I would describe his games as having a maniacal attention to detail.

Then maybe he should handle Jai like he handles his games. Don't talk about it until it's almost ready to go.

Re: My least favorite Rust type

#84

Earlier quoted context omitted.

How long do you think it takes to release a working prototype when you already have one?

But he doesn't want to release a "working prototype", he wants to release a finished, polished language.

The only kind of programming language that is ever "finished" are ones that nobody uses.

Re: My least favorite Rust type

#85
post #7

Earlier quoted context omitted.

Just because it has been debated extensively doesn't mean it's not a wart. Having run into the "reverse range does not contain what you obviously expect it to contain" before and wasting a few hours on it, like many other people have and will continue to do in the future, definitely makes me want to call it a wart.

Rust tries to be conservative with its semantics. You can always create your own range type and implement a deref/from for it to convert it to Rust range.

And yet Range is broken. TFA is 100% convincing.

Re: My least favorite Rust type

#86

Earlier quoted context omitted.

How long do you think it takes to release a working prototype when you already have one?

Maybe he has different standards than you? I assume Jai will be similar to his games as far as attention to details goes. I would describe his games as having a maniacal attention to detail.

Maniacal attention to detail in products is very rare those days. As a born perfectionist I wish I could afford it for myself, honestly.

Re: My least favorite Rust type

#87

Earlier quoted context omitted.

I don't think it's reasonable to make a comment like this without explaining why. He has designed a programming language, so it seems fair to assume he'd have an understanding of programming language design.

You got a link for the compiler for said programming language?

He has a beta program for those interested in trying out the compiler.

Re: My least favorite Rust type

#88

Earlier quoted context omitted.

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 think that's a really toxic attitude. My thoughts about programming languages are still valid, even though I've never made one of my own. I have opinions about what works and what doesn't, based on experience using programming languages, and just because I haven't actually tried to write a compiler doesn't mean I should "shut up" about it. If you don't like his ideas (or him) just ignore them. No one's forcing you…

I think it's toxic to suggest your way or ideas are better without giving people any way to verify that they are. Of course anyone can have an opinion about anything.

Re: My least favorite Rust type

#90

Earlier quoted context omitted.

Most of the methods are constrained to types that implement PartialOrd.

What happens if I make a range bounded on one end by NaN?

Let's try it! It's empty: https://play.rust-lang.org/?version=beta&mode=debug&edition=...
Post reply on HN