For example If I struct type like this
type Foo end
typealias Bar Foo
typealias Something Foo
I want to know if there is way to get the list of typealias for Foo ( Bar, Something)
Thanks!
For example If I struct type like this
type Foo end
typealias Bar Foo
typealias Something Foo
I want to know if there is way to get the list of typealias for Foo ( Bar, Something)
Thanks!
typealiases are just global constants and is removed in 0.6. If you don’t need an accurate list, you can just walk all globals (names) recursively and see if any of them is an alias.
My use case was that same object is being referred as multiple names from data I have. ex)Price, Cost, Gold... and I guess defining multiple names as typealias is not a good approach. I should cleanse data or find a better way to handle this.
Thank you for clearing thing up ![]()