News for hackers. Stuff that matters.
Re:Rust's 2018 roadmap by fnord77 on Monday March 12, 2018 @03:19PM (#16570606)
intellij's rust plugin is pretty good at type interference.

Also sometimes I just let the compiler tell me by forcing the let variable to something that it is obviously not:

`let not_a_string: String = get_something_that_I_have_no_idea();`

error [4242]: expected type String, found type &*YouWouldNeverHaveGuessed

Re:Rust's 2018 roadmap by w4tson on Monday March 12, 2018 @04:42PM (#16571399)
You can get feedback before the compiler kicks in by asking IntelliJ to explicitly define the type.

It’s a trick I used quite a bit when playing about with rust, and Kotlin actually.

Alt + Enter should invoke intentions pop up, you can do it from there. (I think)

Re:Rust's 2018 roadmap by Shoothe on Monday March 12, 2018 @03:46PM (#16570864)
> Also sometimes I just let the compiler tell me by forcing the let variable to something that it is obviously not:

Ha! Very clever! Thanks.

Re:Rust's 2018 roadmap by pimeys on Monday March 12, 2018 @04:48PM (#16571457)
This works quite well, until you're dealing with stuff such as `AndThen` with 10 different nested futures. Here, again, async/await will be a great help.