The Macros module is a fictitious module used to document macros (crystal-lang.org) 12 points by benatkin 1y ago ↗ HN
[–] Alifatisk 1y ago ↗ Didn’t know Crystal could give access to pointers? https://crystal-lang.org/api/latest/Crystal/Macros/PointerOf...
[–] jhbadger 1y ago ↗ What does it mean to be a "fictitious module"? I thought at first this meant that it isn't really defined as a module but through other means, but the linked source code has a "module Crystal::Macros" line, so it looks pretty real to me. [–] ihumanable 1y ago ↗ You might notice the very top of the file that skips it unless docs are being generated. Or the fact that every function is completely empty.It’s a module that exists solely for generating documentation.
[–] ihumanable 1y ago ↗ You might notice the very top of the file that skips it unless docs are being generated. Or the fact that every function is completely empty.It’s a module that exists solely for generating documentation.
3 comments
[ 3.6 ms ] story [ 9.1 ms ] threadIt’s a module that exists solely for generating documentation.