What did %b and %B do in Elixir?

I’m looking at some code that does this:

%b[#{str1}#{str2}]

That looks like the old sigil syntax from way back when. But there are no b or B sigils builtin so they might be custom ones, unless those were removed at some point. I don’t think this syntax would compile anymore.

2 Likes

Now that I look at my question again, it looks like %b and %B may be the equivalent of %q and %Q in ruby, which respectively single quote or double quote their argument.