Skip to content

Latest commit

 

History

History
90 lines (73 loc) · 1.64 KB

File metadata and controls

90 lines (73 loc) · 1.64 KB

supcode

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!

supcode 6.9

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