diff --git a/lib/core/typeinfo.nim b/lib/core/typeinfo.nim index cfb8f8f5d7..32fedd0c1e 100644 --- a/lib/core/typeinfo.nim +++ b/lib/core/typeinfo.nim @@ -8,12 +8,19 @@ # ## This module implements an interface to Nim's `runtime type information`:idx: -## (`RTTI`:idx:). -## Note that even though ``Any`` and its operations hide the nasty low level -## details from its clients, it remains inherently unsafe! +## (`RTTI`:idx:). See the `marshal `_ module for an example of +## what this module allows you to do. ## -## See the `marshal `_ module for what this module allows you -## to do. +## Note that even though ``Any`` and its operations hide the nasty low level +## details from its clients, it remains inherently unsafe! Also, Nim's +## runtime type information will evolve and may eventually be deprecated. +## As an alternative approach to programmatically understanding and +## manipulating types, consider using the `macros `_ package to +## work with the types' AST representation at compile time. See, for example, +## the `getTypeImpl proc`_. As an alternative +## approach to storing arbitrary types at runtime, consider using generics. +## +## {.push hints: off.}