Slice is an actively used programming language created in 2011.

9Years Old ?Users ?Jobs
  • Slice first appeared in 2011
  • file extensions for Slice include ice
  • Have a question about Slice not answered here? Email me and let me know how I can help.

Example code from the web:

module YellowPages
    class PersonDetails
       string phoneNumber;
       optional(1) string address;

    interface PhoneBook
        PersonDetails find(string name);

Example code from Linguist:

#pragma once

#ifndef SOME_TEST

module Linguist
    enum MyEnum

    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();

Last updated August 9th, 2020

Edit Slice on GitHub