maplant
Joined 12 years ago
Karma
3,524
Submissions
965
Member since
Feb 4
maplant.com
View on Hacker NewsJoined 12 years ago
I won't get into the HTML part (I think it's obvious), but the
$(|_e| count.increment())
part is a rust closure. |_e| is the argument to the closure, which has a leading underscore because it's unused. I imagine it's some context about the event (thus the e).
The rest is the body of the closure. It increments the count.pretty simply
enum Value {
Float(f64),
Ptr(*const T),
}
Do you want the compiler to disallow certain bit patterns in the Float variant simply so that it can implement NanBoxing?