bcardiff has joined #crystal-lang
CraigBuchek has joined #crystal-lang
waj has joined #crystal-lang
CraigBuchek has joined #crystal-lang
e_dub has joined #crystal-lang
e_dub has joined #crystal-lang
Excureo has joined #crystal-lang
waj has joined #crystal-lang
asterite has joined #crystal-lang
bcardiff has joined #crystal-lang
travis-ci has joined #crystal-lang
travis-ci has left #crystal-lang [#crystal-lang]
<
travis-ci>
[travis-ci] manastech/crystal#1091 (master - 883df30 : Ary Borenszweig): The build passed.
<
asterite>
@CraigBuchek we changed the ugly macro syntax :-)
<
asterite>
And we'll slowly start making macros more powerful… in baby steps
bcardiff has joined #crystal-lang
asterite has joined #crystal-lang
asterite has joined #crystal-lang
waj has joined #crystal-lang
<
CraigBuchek>
Mustaches. Interesting.
<
asterite>
And the ugly quotes are gone
<
CraigBuchek>
Yes, better in that respect. Still text-based though, it appears?
<
CraigBuchek>
I'm not a fan of mustache in general, but this seems like a good case.
<
asterite>
We can use {% .. %} or whatever other syntax
<
asterite>
{{…}} has little noise
<
asterite>
It's text based, but we think it's better this way
<
asterite>
What's the other approach, creating ast nodes?
<
CraigBuchek>
Yeah, AST nodes, but that's a ton of work.
<
CraigBuchek>
Mustaches are an improvement.
<
CraigBuchek>
AST nodes gets you into lisp territory, which you probably don't want.
<
CraigBuchek>
And then you've got to worry about running things at compile time.
<
CraigBuchek>
So as an LLVM compile language, probably not feasible.
<
asterite>
Yes. We might reach that point in the future, but for now we'll support some basic (but powerful) stuff in macros
<
asterite>
Like for, if, and some compile-time introspection
<
CraigBuchek>
Awesome. That's a great compromise.
bcardiff has joined #crystal-lang
waj has joined #crystal-lang
asterite has joined #crystal-lang
e_dub has joined #crystal-lang
e_dub has joined #crystal-lang
waj has joined #crystal-lang
waj has joined #crystal-lang