Skip to content

DOCtorActoAntohich/type-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Short Type Name

A really (really) simple way of extracting a short type name of the struct or enum.

Rationale

There isn't. I just wanted to make this thing by myself.

I always say "strings are instant legacy", so I avoid using them to define the behavior. (Say hi to Literal["whatever"] argument type from Python).

This way you can hide strings behind functions and be safe from stupid bugs.

Anyway, I hope you won't need it. :ohh_yeah:

Examples

The Doc-tests provide good enough examples. Check this out yourself here.

About

Extract type names as strings. Automagically.

Topics

Resources

Stars

Watchers

Forks

Languages