Hacker News new | ask | show | jobs
by da4c30ff 4081 days ago
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.
1 comments

You could sidestep it like Python does, adding an underscore after variables that are named the same as keywords (e.g. `type_`).