Someone asked where `bool` is defined in Rust. Had a fun time exploring the answer. http://stackoverflow.com/a/39538972/385966 …
-
-
Replying to @sgrif
Corrections on where I'm completely wrong would be appreciated. :)
1 reply 0 retweets 1 like -
Replying to @sgrif
wouldn't it be defined in the source code somewhere? It seems like this person is only digging through docs.
1 reply 0 retweets 0 likes -
Replying to @mgattozzi
Not in libstd or libcore. It's entirely handled in the compiler
1 reply 0 retweets 0 likes -
Replying to @sgrif
just like the other primitives then? Or do are they handled differently like this so question implies
2 replies 0 retweets 0 likes -
Replying to @mgattozzi
In my mind they're slightly special because it's conceivable for them to have been defined in pure rust.
1 reply 0 retweets 0 likes -
-
-
Replying to @sgrif
what about the other primitives though? Things like i32 would be hard to define I would think.
1 reply 0 retweets 0 likes
Right that's what I mean. bool is the only primitive that seems like it doesn't strictly need to be.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.