3 ms·
Yes I should have been more clear that I was talking about a static typing context. In a dynamic language the problem is much easier, as you are basically only
by u320 11y ago
Yes I should have been more clear that I was talking about a static typing context. In a dynamic language the problem is much easier, as you are basically only limited by your languages metaprogramming facilities.
- RussianCow 11y agoBut isn't the same true for a statically typed language with sufficiently powerful macros? I don't know if Rust falls into that category, having never used it, but I don't think it makes a difference whether the metaprogramming happens during compile time or runtime.
- ossreality 11y agoYeah, if they're talking about what I think they're talking about, yes, something like LINQ could be implemented with macros (compiler plugin variant, I think) in Rust.
- girvo 11y ago> basically only limited by your languages metaprogramming facilities I'd like to point out that strong static-typing does not preclude powerful metaprogramming! Nim's macro system is extremely powerful because of it's great interplay between it and the type system. http://nim-lang.org/docs/manual.html#macros http://nim-lang.org/docs/manual.html#macros