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

Haskell camelCase

Name: Anonymous 2010-04-14 14:28

Haskell has support for function_names_with_underscores. Why the fuck do people use PIG DISGUSTING camelCase?

Name: Anonymous 2010-04-15 19:07

>>26
It would be no more ambiguous than underscores.

Name: Anonymous 2010-04-16 2:51

>>40
So its basically in the same state as velox et astrum?

Name: Anonymous 2010-04-16 4:22

camelToe()

Name: Anonymous 2010-04-16 5:09

>>42
And then TROLLGOL was velox et astrum.

Name: Anonymous 2010-04-16 12:35

/* Hello TROLLGOL 0.0.1 */
#import_Standard Input / Output Header
#import_Standard Library Header

Main_I/O String_I / O Int_::_->
(Define_Main(ArgumentsChar **::)
  (let((Looping Procedure =(Lambda(X_Y_Int-String_::_::)
    (If(X_0_>)
      (Do(Print Function_Y))
      (Do(return X)))))
  In_Looping Procedure_1_"Hello TROLLGOL\\n"))

Name: Anonymous 2010-04-16 12:58

>>45
You and your proprietary extensions, real trollgol programs look like this
make-fn fact|x|{
    make-fn fact-iter|n,i|{
        if equals i 0 then
            return n
            neth
            else
                call fact-iter (times n i) (subtract i 1) llac
            esle
        fi
    } |i,n|reti-tcaf nf-ekam

    call fact-iter x 0
} |x|tcaf nf-ekam

Name: Anonymous 2010-04-16 13:27

>>46
ERROR AT LINE 1: EXPECTED ' '
ERROR AT LINE 2: EXPECTED ' '

Name: Anonymous 2010-04-16 15:14

>>47
Actually, there are two syntax errors, but they are on lines 4 and 12. Here is the same program without syntax errors and in the recommended style
make-fn fact with args x
   body
      make-fn fact-iter with args n i
         body
            if equals i 0 then
               return n nruter
               neth
               else
                  call fact-iter (times n i) (subtract i 1) llac
               esle
            fi
         ydob
      i n reti-tcaf nf-ekam

    call fact-iter x 0 llac
   ydob
x sgra htiw tcaf nf-ekam

Name: Anonymous 2010-04-16 20:00

>>48
You forgot that TROLLGOL compiler doesn't do TCO automatically yet. This version will be much faster on the latest version:
make-fn fact with args x
   body
      make-fn fact-iter with args n i
         body
            if equals i 0 then
               return n nruter
                  neth
               else
                  #<ifdef __supported_tailcall>
                      tailcall fact-iter (times n i) (subtract i 1) liatllac
                  #<else>
                      call fact-iter (times n i) (subtract i 1) llac
                  #</fedfi>
               esle
            fi
         ydob
      i n reti-tcaf nf-ekam

    #<ifdef __supported_tailcall>
        call fact-iter x 0 llac
    #<else>
        tailcall fact-iter x 0 liatllac
    #</fedfi>
   ydob
x sgra htiw tcaf nf-ekam

Name: Anonymous 2010-04-16 20:01

>>49
On the latest version of TROLLGOL compiler, of course.

Name: Anonymous 2010-04-16 20:14

How are you guys omitting all of the parentheses? Is this some kind of FIOC?

Name: Anonymous 2010-04-16 20:33

>>51
If by FIOC you mean The Forced Inversion of Ceywords, then yes.

Name: Anonymous 2010-04-16 21:23

>>52
The Forced Insertion Of Cock

Name: Anonymous 2010-04-16 21:25

>>49
I know I've seen a spec for this, or something like it at least.

Name: Anonymous 2010-04-17 11:07

>>51
Indentation in TROLLGOL is required, but has no meaning.

According to the spec, a TROLLGOL program is only valid if each line has a different amount of indentation than the last line of the enclosing scope.

There is a complier switch to ignore indentation, but it is not recommended.

Name: Anonymous 2010-04-17 17:10

Let's put accents on our vowels!
Let's program in Korean too!

Name: Anonymous 2010-04-17 19:17

>>56
(정함 계승 (n)
  (면 (<= n 1)
      1
      (* n (계승 (- n 1)))))

Name: Anonymous 2010-04-17 19:30

>>57
Sexpressy.

Name: Anonymous 2010-04-17 19:49

(下子 階乘 (n)
  (如 (<= n 1)
     1
     (* n (階乘 (1- n)))))

Name: Anonymous 2010-04-18 18:11

(leg juice (n)
  (flop (<= n 1)
     1
     (* n (pop! (1- n)))))

Name: Anonymous 2010-04-18 19:45


(デス おはよう (タ路)
  (言う-言葉 "おはよう, ")
  (言う-言葉 タ路)
  (言う-言葉 "くん!\n"))

Name: Anonymous 2010-04-18 19:54

>>61
I just came a little inside.

Name: Anonymous 2010-04-18 21:29

>>61
(Good morning death (data path)
  (Say - the word "Morning")
  (Say - word data path)
  (Say - the word "kun! \ N"))

Name: Anonymous 2010-04-18 21:35

>>63
" \ N"
you should feel kind of bad about this

Name: Anonymous 2010-04-18 21:48

>>64
There are a lot of things to feel bad about there, the use of Google Translate in particular.

Name: Anonymous 2010-04-19 15:34

>>65
Oh, I'm sorry I did not learn fucking Japanese just to read that post.

Name: Anonymous 2010-04-19 16:44

>>66
l2japanese

Name: Anonymous 2010-04-19 17:07

>>67
back to /jp/, please

Name: Anonymous 2010-04-19 17:42

>>66
So what? Google Translate has nothing to do with understanding that post. I understood the ones in Korean(?) without looking them up.

What you need to learn is how to read an S-expression, and Google Tanslate won't help you there.

Name: Anonymous 2011-02-03 0:46

Name: Anonymous 2013-06-18 19:47

I ARE ANDRU

Name: Anonymous 2013-06-18 19:54

I ARE ANDRU

Name: Anonymous 2013-06-18 20:01

I ARE ANDRU

Name: Anonymous 2013-06-18 20:09

I ARE ANDRU

Name: Anonymous 2013-06-18 20:16

I ARE ANDRU

Name: Anonymous 2013-06-18 20:23

I ARE ANDRU

Name: Anonymous 2013-06-18 20:30

I ARE ANDRU

Name: Anonymous 2013-06-18 20:37

I ARE ANDRU

Name: Anonymous 2013-06-18 20:44

I ARE ANDRU

Name: Anonymous 2013-06-18 20:52

I ARE ANDRU

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