Intro
Icon ChevronDown
Fuel 101
Icon ChevronDown
Sway
Icon ChevronUp
About
Introduction
Examples
Sway Program Types
Basics
Blockchain Development
Advanced
Common Collections
Testing
Frontend
LSP
Reference
Icon BrandGithubFilled
Version: 0.49.3
Icon Link
TypeScript SDK
Icon ChevronDown
Rust SDK
Icon ChevronDown
Wallet SDK
Icon ChevronDown
GraphQL API
Icon ChevronDown
Forc
Icon ChevronDown
Specifications
Icon ChevronDown
Sway Std Lib
Icon Link
Sway Core
Icon Link
Example Applications
Icon Link
Sway Playground
Icon Link
Faucet
Icon Link
Notices
Contributing
Feedback
Sway
Icon HelpCircle
Forum
Icon Link
Version: Beta-5
Icon ChevronDown
Search
⌘K
Icon HelpCircle
Forum
Icon Link
Version: Beta-5
Icon ChevronDown
Icon List
Docs
/
Sway
/
Reference
/
Style Guide
Icon Link
Style Guide
Icon Link
Capitalization
In Sway, structs, traits, and enums are
CapitalCase
. Modules, variables, and functions are
snake_case
, constants are
SCREAMING_SNAKE_CASE
. The compiler will warn you if your capitalization is ever unidiomatic.