Slice is an actively used programming language created in 2011.

8Years Old 1,000Users 0Jobs
  • Slice ranks in the bottom 50% of languages
  • Slice first appeared in 2011
  • I have 24 facts about Slice. just email me if you need more.

Example code from the web:

// YellowPages.ice
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
[["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();
    }
}
Edit

Last updated February 11th, 2019