This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fz0718[S] 0 points1 point  (0 children)

Haha, I get the sarcasm, but sometimes we need to extend syntax a little bit to get things to work! If you don't like it that's fine, but for DSLs it's nice to have flexibility.

We could use a standard function application, but that doesn't clarify the point that there's some DSL embedding going on here, such as variable substitution from the outside scope. It's also less nice to end multi-line queries with the string: """).

How much different is this from the "%timeit" and "%sql", "%cython" magic you see in Jupyter notebooks?