4 ms·
Could you explain why you think Scala is not homoiconic? I checked a few common definitions of homoiconicity and it seems like Scala is within the ruleset.
by frowaway001 13y ago
Could you explain why you think Scala is not homoiconic?
I checked a few common definitions of homoiconicity and it seems like Scala is within the ruleset.
- copergi 13y agoHow do you figure? What scala data type is scala source code?
- frowaway001 13y agoThose types from scala.reflect.
- copergi 13y agoNo it isn't. Those tell you what types the values represent. We're talking about the actual source code itself. In lisp, the source code is itself a perfectly ordinary lisp value. That is what homoiconicity is. That is not something scala has, nor is it something scala wants to or claims to have.
- frowaway001 13y ago> In lisp, the source code is itself a perfectly ordinary lisp value. Isn't quoting necessary to "reify"/refer to the actual code as data?
- copergi 13y agoYes?
- frowaway001 13y agoSo what's the difference then? I need to quote in Lisp, I need to quote in Scala.