Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

Slice

< >

Slice is a programming language created in 2011.

#890on PLDB 13Years Old 40Repos


Example from the web:
// YellowPages.ice module YellowPages { class PersonDetails { string phoneNumber; optional(1) string address; } interface PhoneBook { PersonDetails find(string name); } }
Example from Linguist:
#pragma once #ifndef SOME_TEST [["java:package:linguist"]] #endif module Linguist { enum MyEnum { One, Two, Three } struct MyStruct { // An int int a; /* string */ string b; MyEnum e; } exception MyException { string e; } dictionary<string, string> MyDict; sequence<MyEnum> MyEnumSeq; class BaseClass { int value = -1; } class MyClass extends BaseClass { MyDict info; optional(1) string op; } interface MyInterface { void operationA(out bool valid); idempotent void operationB(int a); MyEnumseq getEnum(); ["cpp:const", "cpp:noexcept"] string getName(); } }

Language features

Feature Supported Example Token
MultiLine Comments
/* A comment
*/
/* */
Comments
// A comment
Line Comments
// A comment
//
Semantic Indentation X

View source

- Build the next great programming language · About · Resources · Acknowledgements · Part of the World Wide Scroll