Skip to content

Instantly share code, notes, and snippets.

@darkfrog26
Created January 28, 2025 15:30
Show Gist options
  • Save darkfrog26/4d810642f1cf632adbabd0948f46b60a to your computer and use it in GitHub Desktop.
Save darkfrog26/4d810642f1cf632adbabd0948f46b60a to your computer and use it in GitHub Desktop.
Meta Language Idea?
@scala {
object Example {
@java {
public void main(String[] args) {
...
}
}
val json = @json {
one: 1,
two: 2
}
val xml = @xml <document>
<one>1</one>
<two>2</two>
</document>
@python {
def my_method(self):
print("This is Python!")
}
@javascript {
foo() {
return "bar";
}
}
val sql = @sql {
SELECT * FROM my_table
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment