5 ms·
> Fn* closure traits implemented for Box<dyn Fn* > This threw me for a minute. Function pointers not using * is confusing enough without using glob syntax to t
by firethief 7y ago
> Fn* closure traits implemented for Box<dyn Fn* >
This threw me for a minute. Function pointers not using * is confusing enough without using glob syntax to talk about function types!
- Arnavion 7y agoYour comment was also confusing until I reached your parenthetical, because `+` is used for separating trait bounds :)
- firethief 7y agoYeah, I moved it to the top. Funny how I can't talk about the character being too overloaded because it has another meaning to the forum... Edit: the parent comment was replying to an earlier version of my comment, in which I used + because I didn't know that * could be kind-of escaped by putting a space after it
- tomjakubowski 7y agoWell, there is always: *mut fn(T, ...) -> U
- firethief 7y agoUnless you are intentionally bringing up pointers to function pointers, this is exactly the confusion I'm talking about :)
- ChrisSD 7y agoUse four spaces at the beginning of the line *
- firethief 7y agoThat breaks mobile. I get a scrollable area with no scrollbars, so the content just looks clipped.
- ChrisSD 7y agoWhich is why I used short lines.
- firethief 7y agoYeah, that's fine for your comment, but what I want to say isn't the same as what you said. I'm quoting a heading; it would be weird to break it in half, but it's too wide to display correctly even on my tablet.
- pcr910303 7y agoMaybe a cross-browsing bug?̊̈ I’ve never seen a browser that doesn’t scroll horizontally in mobile. In particular, I’ve used HN with iOS 12.2 Webkit and Android Google Chrome Evergreen and Chromium based browsers... Maybe a bug in Android Firefox?̊̈ (Or the browser you’re using?̊̈)
- deleted 7y ago[deleted]
- chc 7y agoIt should work as long as there's a space after the asterisk: > Fn* closure traits implemented for Box<dyn Fn* > This threw me for a minute. Function pointers not using * is confusing enough without using glob syntax to talk about function types!