Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

FIOC to new levels

Name: Anonymous 2012-07-19 21:51

Static FIOC with contracts, running on Mono/CLR.
As soon as scipy is finished, I don't want Python anymore. <3

http://cobra-language.com/

Name: Anonymous 2012-07-19 22:11

; goes,
. comes.

Name: Anonymous 2012-07-19 22:25

It's a fucking clusterfuck, holy shit, typical pythonista garbage.

Name: Anonymous 2012-07-19 23:09

Not, it's to Python what Java is to C++.

Name: Anonymous 2012-07-20 2:18

>>1

contracts are nice to see. I'd rather not have a testing function written with the declaration, but that's cool too if the compiler can take advantage of the association.

Name: Anonymous 2012-07-20 3:09

>>5
They're probably not even statically checked, and it seems that you're forced to write types and contracts where the definition is.
I mean, the template of a complete function definition is 10 lines long:

def function(x as T, ...) as T
  "docstring"
  require
    ...
  ensure
    ...
  test
    ...
  body
    ...

I would prefer doing something like:

type function as (T, ...) : T # (or whataver their function type syntax is)
contract function
   require
      ...
   ensure
      ...

def function(x, ...)
   ...

test function
   ...

Which may seem longer, but they can at least be relocated for readability, and lifts the need for the ``body'' keyword and another level of indentation which, in a method definition, would be 4 levels already, or 12/16 spaces, which take 15%/20% of the horizontal space with 80 characters per line, and 10%/~13% with 120 characters per line, not counting that just a loop and a if would be 6 levels deep and 30% of screenspace wasted with 80 chr/line and 4-space indentation, and I'm being generous because we don't live in a perfect world where a loop and a if is enough. In the worst case, you might end with a class+def+body+loop+branch+on+cue+do and 8 fucking levels of indentation, 40% of screen wasted, and your mother breeding niggers with niggers.
And as is a stupid keyword to annotate a type.

Name: Anonymous 2012-07-20 4:00

>>6
I know someone else who was very concerned with screen real estate... http://dis.4chan.org/read/prog/1244927864/222

Name: Anonymous 2012-07-20 5:20

>>7
I'm usually not, but

class A
    def f(x)
        body
            while 1
                branch x
                    on 2
                        cue g(do(y))
                            if
                                ...

is really too much for me. It's because of THE FORCED INDENTATION OF CODE, I guess.

Name: Anonymous 2012-07-20 7:30

Visual Basic is a better language than this.

Name: Anonymous 2012-07-20 7:43

Prolog has this beat hands down.

Name: Anonymous 2012-07-20 12:54

fioc is such shit, i swear to fucking god i will maim guido and anyone who seriously thinks fioc is an acceptable thing

Name: Anonymous 2012-07-20 14:11

fioc is teh truht

Name: Anonymous 2012-07-20 15:59

>>11
FIOC is a great language. Come at me bro.

Name: Anonymous 2012-07-20 17:54

my testicles are bigger that yours

Name: Anonymous 2012-07-21 0:34

>>13
it's a crippled javascript clone. why would you even want to use it

Name: Anonymous 2012-07-21 1:10

>>15
truth

Name: Anonymous 2012-07-21 1:23

>>15
javascript is a crippled lisp clone. why would you even want to use it

Name: Anonymous 2012-07-21 1:57

>>17
lisp is a crippled lisp clone. why would you even want to use it

Name: Anonymous 2012-07-21 2:03

based lisp

Name: Anonymous 2012-07-21 2:55

>>19
>CANCEL DOWNLOAD

Name: Anonymous 2012-07-21 19:51

Are you guys saying that Lisp is the root of all FIOC?

Don't change these.
Name: Email:
Entire Thread Thread List