deliciously flavourful code
Note
Properly renovating this repository at some point in the imminent future!
supcode is designed to be unique. It’s weird, it’s wacky, and it’s wonderful. Why do stuff the boring way, when we could instead try out crazy new things?
activate sys
create struct 'Portal' [Core]
{
Core 'core'
bool 'active'
evolve create self(Core 'core') [
| bool 'active' = FALSE
] {
set self.core = core
set self.active = active
}
func[Core] self.spin()
{
out self.core
}
}
on activate
{
set portal = Portal[str]("sup world")[active = TRUE]
sys.out(portal.spin())
}
Tip
Check out more of what supcode can do in A Whirlwind Tour of supcode!
| latest release | 6.9 (concept) |
| typing | dynamic with opt-in static |
| paradigm | all of them |
| purposes | anything you could dream up |
| syntax | flavourful, flexible, fun |
| whitespace | insignificant |
| inspired by | C#, CSS, Haskell, HTML, Python, Ruby, Rust, Swift, TypeScript, Wikitext Markup |
| conception | September 2021 |