The Skew Programming Language (evanw.github.io)
from armchair_progamer@programming.dev to programming_languages@programming.dev on 10 Jun 2024 03:06
https://programming.dev/post/15312889

A language which was used by Figma until recently. It compiles to JavaScript or C#.

GitHub

Why and how Figma migrated from Skew to Typescript.

Differences between Skew and TypeScript

Example from the homepage:

# Execution starts at the entry point
@entry
def fizzBuzz {
  for i in 1..101 {
    var text = mod(i, 3, "Fizz") + mod(i, 5, "Buzz")
    document.write((text == "" ? i.toString : text) + "\n")
  }
}

# The compiler inlines this function in release mode
def mod(i int, n int, text string) string {
  return i % n == 0 ? text : ""
}

# Imported declarations are just for type checking
@import
namespace document {
  def write(text string)
}

#programming_languages

threaded - newest