-
It compiles to `(list a)` instead, and the `eq`-test against the symbol `a` is not performed.
-
``` scala
q"""
object $name {
$unquotee // single line
/* multi
lines */
"""
```
@densh pretty please :)
-
can You please explain me why `name` is not in scope here?
```sh
✘ ~/.config/dotfiles master ● scripts/update-index-js.hs i3/config
scripts/update-index-js.hs:23:27: error:
• Vari…
-
I think that the [implementation of quasiquotes in scalamacros/scalamacros](https://github.com/xeno-by/scalamacros/blob/5b055c894d20ebc4f3b12c18d47656f8b35389d4/plugins/scalac/src/main/scala/scala/mac…
-
`macroexpand-all` in `hy.contrib.walk` should not be expanding anything in quotations, because the compiler doesn't either.
```Hy
=> (print '(if 1 2 3))
('if' 1 2 3)
=> (macroexpand-all '(print '(…
gilch updated
6 years ago
-
As per http://stackoverflow.com/questions/11681631/macro-return-type-and-higher-order-functions:
Macro definition:
```scala
def test(s:String) = macro testImpl
def testImpl(c:Context)(s:c.Expr[…
-
file src
```hs
module Lib where
import Data.Aeson.TH as Aeson
import Protolude
data Freeplay = Freeplay
{ freeplay :: !Bool
, operator :: !Text
, token :: !T…
-
The quasiquote spec includes some wishful thinking like `q""" $name"$${..$exprs}" """` to works with string interpolations and insert/extract their parts. Since it doesn't capture static parts and has…
-
Examples of undesired quasiquotes:
* `case q"foo(..$args)" =>` (matching by name is not robust)
* `case q"class $name" =>` (classes that have non-empty mods will not match)
* `case q"this" =>…
-
### Macros used in the public API of scala.meta
Essential:
* Quasiquotes (string interpolators, auxiliary `Lift`/`Unlift` macros)
### Macros used when compiling scala.meta
Essential:
* …