Todd Sundsted

TIL

The (the Unicode ellipsis character) works as both a Crystal Language macro and method name, as in:

macro …(str, n)
  Ktistec::Util.render_as_text_and_truncate({{str}}, {{n}})
end

Which can be used in a view template as:

= … preview, 120

I'm not saying you should. I'm saying you can.

#crystallang #til