• Circa

    defunkt 30 Apr 2009

    Circa is a programming language designed for for rapid prototyping by andyfischer.

    The intro page has some good information and the syntax example highlights some interesting ideas:

    -- The @ operator is some syntactic sugar for rebinding 
    -- an identifier to the result of the overall statement.
    -- These two lines do exactly the same thing:
    my_number = max(my_number, 40)
    max(@my_number, 40)
    
    -- Lists are indicated by []s
    -- List arguments also can be separated 
    -- by commas or semicolons or spaces
    names = ['Absalom','Bouffant','Chilton']
    numbers = [1 2 3]
    orders = [locate; evacuate; exterminate]
    

    Looks neat!

  • Comments

    kballard Thu Apr 30 13:50:16 -0700 2009

    The first syntax example there didn't quite work. It's supposed to say

    max(@my_number, 40)
    
    visionmedia Fri May 01 14:29:25 -0700 2009

    Not to hard to whip up a grammar like that, just depends what your doing if you can get away with allowing optional commas etc

    Please log in to comment.