Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programming Language with Inflection

Is there a programming language that uses inflections (suffixing a word to add a certain meaning) instead of operators to express instructions? Just wondering.

What I am talking about is using inflections to add a meaning to an identifier such as a variable or type name. For example:

native type integer

var x : integer = 12
var location : integers = 12, 5, 42
say 0th locationte to_string (( -te replaces "." operator. prints 12 ))
like image 810
Ming-Tang Avatar asked May 04 '10 02:05

Ming-Tang


2 Answers

I think Perligata (Perl in Latin) is what you're looking for. :) From the article

There is no reason why programming languages could not also use inflexions, rather than position, to denote lexical roles.

Here's an example program (Sieve of Eratosthenes):

    #! /usr/local/bin/perl -w
    use Lingua::Romana::Perligata;
    maximum inquementum tum biguttam egresso scribe.
    meo maximo vestibulo perlegamentum da.
    da duo tum maximum conscribementa meis listis.
    dum listis decapitamentum damentum nexto
        fac sic
            nextum tum novumversum scribe egresso.
            lista sic hoc recidementum nextum cis vannementa da listis.
        cis.
like image 128
Gabe Avatar answered Sep 20 '22 02:09

Gabe


This is partially facetious, but... assembly language? Things like conditional jump instructions are often variations on a root ("J" for jump or whatnot) with suffixes added to denote the associated condition ("JNZ" for jump-if-not-zero, et cetera).

like image 43
Amber Avatar answered Sep 21 '22 02:09

Amber