whim
/playground
github
docs
whim 0.2.0
theme: system
Run
⌘↵
Format
Load an example
Examples
Hello, world
Pattern matching
Reified generics
Aliases and newtypes
Closures and function types
Classes and interfaces
Backed enums
Shapes and range types
Expression control flow
Catch guards and cleanup
Using and resource lifetime
Collections
Runtime reflection
Async tasks
Channels
JSON
UUIDs
Dates and calendars
Regular expressions
Unicode
URLs and queries
CSV streams
BSON documents
Compression streams
Hashes and HMAC
HTML text
Binary integers
IP and CIDR
Option and Result
Random sequences
Shell escaping
ANSI · terminal colors
Args · command lines
Cache · local storage
Clock · controlled time
Config · typed settings
Diff · edit sequences
Dotenv · environment files
Event · dispatching
Expect · test assertions
Fake · test data
Fn · function composition
Humanize · readable values
Log · structured events
Markdown · terminal output
Money · exact amounts
OTP · one-time passwords
QR · code matrices
Seal · signed tokens
SemVer · version ranges
Template · Mustache
Share
main.whim
source
Whim source code
1
$language = 'Whim'; write_line!('Hello from ' . $language . '!');
⋮
output