Better HN
topnewbestaskshowjobs
Log inSign up

Tohquai7

9 karma · joined Mar 7, 2019 (7y ago) · 2 submissions

Submissions

comment 7y ago · link · parent

It can.

-Z unstable-options -Zunpretty=hir,typed

    // source
    pub fn square(num: i32) -> i32 {
        num * num
    }

    // expanded
    use ::std::prelude::v1::*;
    extern crate std;
    pub fn square(num: i32)
     -> i32 ({ ((num as i32) * (num as i32) as i32) } as i32)

You can try on https://rust.godbolt.org/

comment 7y ago · link · parent

IDEs and productivity tools often approximate a tile-based window managers where you can collapse all but the central tile (or conversely, put the central one in fullscreen) if you want the maximal real estate for the content instead of the auxiliary bars and then slide them in for a moment when you need them.

This mode seems suited for mobile UIs, so that flexibility should get them pretty close to being convergent. There probably still need to be some adjustments to make it really usable on mobile, but a lot of the work has already been done.