News for hackers. Stuff that matters.
Re:Rust Priorities after 1.0 by da4c30ff on Friday April 17, 2015 @03:06AM (#9392639)
I wish I could use 'type' as a variable name or as a field on a struct. It's one of the most used identifier names and the inability to use it is frustrating.
Re:Rust Priorities after 1.0 by heinrich5991 on Friday April 17, 2015 @05:24AM (#9393128)
You could sidestep it like Python does, adding an underscore after variables that are named the same as keywords (e.g. `type_`).