dang#

A statically typed scripting language for GraphQL, where the types and functions are loaded directly from the schema.

$ go install github.com/vito/dang/v2/cmd/dang@latest
# Edit me, then hit Run — this evaluates in your browser.
type Greeter {
  name: String!
  greet: String! { `Hello, ${name}!` }
}

["world", "Dang", "you"].map { who => Greeter(who).greet }

NOTE FROM A HUMAN: this is an AI-assisted draft, for now just establishing the concepts, framing, and facts. Everything here is correct and verifiable, and I do like the brevity, but there are probably better ways to explain things. I'll be improving them gradually and this notice will go away when it's in a state I'm proud of. Sorry for any nonsense. Every paragraph has a 'feedback' button so you can yell at me about it anonymously.