3 ms·
I need this for a static analysis, where sometimes I want a template type (eg `Maybe<T>`) to inherit properties from the template parameter. I used to do a horr
by sfink 5y ago
I need this for a static analysis, where sometimes I want a template type (eg `Maybe<T>`) to inherit properties from the template parameter. I used to do a horrible hack involving processing things in order of the string length of the type, but eventually had to hack together a basic parser to tease things apart. Which still feels Wrong; I shouldn't be unreliably recomputing information that the compiler already knew but threw away.
I also do some awful things with regexes to simplify output of type names. Basically, I am just a bad person.