I'm pretty sure I'm doing this wrong: http://play.crystal-lang.org/#/r/bqq and reflection of this kind (finding the base generic types of an array of nested arrays) (yes, still trying to make Iterator.flatten work) shouldn't require using regexes to pry apart stringifed type params. But I don't see another way to do this, using the existing type reflection facilities available in macros. What am I missing? Is there a nicer way to do this, or does the macro system maybe need more functions for traversing and introspecting nodes and sets of nodes?jhp
--
You received this message because you are subscribed to the Google Groups "Crystal" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crystal-lang...@googlegroups.com.
To post to this group, send email to crysta...@googlegroups.com.
Visit this group at http://groups.google.com/group/crystal-lang.
To view this discussion on the web visit https://groups.google.com/d/msgid/crystal-lang/f4e745be-bc6e-4b20-9633-456d7c0193e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/crystal-lang/CAM%2B1a2vvcWrvcOzzPGZKKeLCwrkYsEHiBTCFV3bYZc-q%3D_QN4g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/crystal-lang/CABt_Yi9yhirh9x-vNjeS4AfkcE1P---4HXTxK%3Dzq2zYVhQvr2A%40mail.gmail.com.