Live data from Hacker News

Viewing profile — nrc

nrc

HN member
Joined
Wed, Jan 22, 2014, 7:07 PM UTC
HN karma
217
Public activity
29 items

About nrc

Twitter: @nick_r_cameron, GitHub: @nrc. PingCAP/TiKV; Rust core team.

Recent public activity

  1. comment
    Comment #33530214

    Many of the features of such crates are making their way to the standard library, so things will definitely improve. Figuring out what is best has taken some time and Rust has not …

  2. comment
    Comment #33529772

    Nope, try blocks are a new (unstable) feature

  3. story
  4. comment
    Comment #33510084

    My point is that there or may or may not be reasonable justification for adding GATs, reasonable people can disagree on that. But async methods are not part of that justification. …

  5. comment
    Comment #33509969

    To be clear, there are not use cases in the std lib. The use case is as an intermediate representation for the compiler, and that is no motivation for inclusion in the language (in…

  6. comment
    Comment #33505911

    No, they're not. GATs are used internally in the compiler to implement async methods, but there is absolutely no need for them to be in the language for that (just like generators …

  7. comment
    Comment #29497396

    We'd like anyone who is interested in Rust to fill out the survey, even if you've stopped using Rust or have never used Rust (and of course if you're a Rust user, however much or l…

  8. story
  9. story
  10. comment
    Comment #20161633

    I'm sorry you've had that experience. We are working hard to be better open source citizens in many ways, including better communication on issues, etc.

  11. story
  12. comment
    Comment #15051441

    This should work (it's my goto test case). You have to put the cursor in the erroring code to see the possible fix icon in the margin. If you don't see it please file an issue with…

  13. comment
    Comment #13888521

    We're literally hacking on this right now. It should be part of the early June stable release.

  14. comment
    Comment #13423651

    It should yes, if it doesn't then its a bug that I should fix...

  15. comment
    Comment #12740037

    Syntax highlighting is (usually) done by the editor, not the server in the LS protocol. The changes sent from editor to server are pretty minimal, and so the whole thing is pretty …

  16. comment
    Comment #12739829

    Indeed, the RLS uses that protocol to communicate with IDEs.

  17. comment
    Comment #9828013

    The compiler will not enforce more style in the future, that will be done by Rustfmt, a separate and optional tool. In fact, it is likely that the compiler lints which enforce styl…

  18. comment
    Comment #8665342

    Major points: donations are used for projects working on things like web literacy, rather than on large engineering projects like Firefox. The more Mozilla get from donations, the …

  19. comment
    Comment #8548269

    There is syntax highlighting for Vim, Emacs, and Sublime Text editors. GitHub does syntax highlighting for Rust repos and in Gists. There is support for Rust in the Pygments syntax…

  20. comment
    Comment #7792610

    With structs, pretty much the only difference is the syntax. Enums are probably where the biggest differences are from C, as far as data types go.

  21. comment
    Comment #7792250

    In Rust, we are quite strict about the syntax used for destructuring matching the syntax used for instantiation. There is a name in the tuple-struct declaration, therefore you must…

  22. comment
    Comment #7666352

    Featherweight Java ( http://www.fos.kuis.kyoto-u.ac.jp/~igarashi/papers/fj.html ) was a seminal paper which showed type soundness for Java. The formal syntax was a subset of Java s…

  23. comment
    Comment #7632426

    All array indexing is bounds checked, so those kind of errors are prevented. We're still working on the story around overflow checking

  24. comment
    Comment #7616282

    I actually used enumerate in an earlier version of this post, but in the case I used it didn't work (pointed out to me on /r/rust). I'm going to go into enumerate and other iterato…

  25. comment
    Comment #7616268

    It was a design decision made long ago and seems to have stuck (although is slightly less extreme than it used to be). I also used to hate the abbreviation, but I find you get used…