79248067

Date: 2024-12-03 14:50:19
Score: 0.5
Natty:
Report link

With this docpos proc macro library (⑂roxygen) you can write this tabular beauty:

#[docpos]
enum MyEnum {        /// Enumerates the possible jobblers in thingy paradigm.
  EnumValue1        ,/// 1 Something is a blue exchange doodad thingy thing.
  EnumValueTheSecond,/// 2 Something is meld mould mild mote.
                     ///! 3 Vivamus arcu mauris, interdum nec ultricies vitae, sagittis sit.
  EnumValueGamma    ,// :( invalid syntax to have ///doc here, use ///! ↑
}

And it will get expanded to the regular mess

/// Enumerates the possible jobblers in thingy paradigm.
enum MyEnum {
    /// 1 Something is a blue exchange doodad thingy thing.
    EnumValue1,
    /// 2 Something is meld mould mild mote.
    EnumValueTheSecond,
    /// 3 Vivamus arcu mauris, interdum nec ultricies vitae, sagittis sit.
    EnumValueGamma,
}
Reasons:
  • Blacklisted phrase (1): :(
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Evgeny