Skip to content

A programming language for the modern world.

License

Notifications You must be signed in to change notification settings

devsnek/slither

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

202 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slither

A modern scripting runtime

function fib(n, a = 0, b = 1) { // argument initializers
  if n == 0 { // no parenthesis around if or try
    return a;
  }

  if n == 1 {
    return // unambiguous grammar means
      b;   // that this returns b, not null
  }

  // tail recursion
  return fib(n - 1, b, a + b);
}

print(fib(10) == 55);

Goals in no particular order

  • staged JIT for good performance
  • fast and easy networking
  • good ffi interface

About

A programming language for the modern world.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors

Languages