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

hi

Name: Anonymous 2009-03-14 12:45

(begin
  (display "Hello World") (newline)
)

Name: Anonymous 2009-03-14 12:45

you mean
(begin
  (display "Hello World") (newline)
)


also hi

Name: Anonymous 2009-03-14 12:53

(format t
        "You are not welcome here.")

Name: Anonymous 2009-03-14 12:54

putStrLn "Hello, what's your name?" >> getLine >>= \x -> putStrLn $ x ++ " is a faggot."

Name: Anonymous 2009-03-14 13:05


#include <iostream>

using std::cout;
using std::endl;

int main() {
   cout << "Stop using toy languages, please." << endl;

   return 0;
}

Name: Anonymous 2009-03-14 13:21

public class runmeplz
{
     public static void main(String[] args) throws IOException
     {
          System.out.print("Hey guise can I join?");
     }
}

Name: Anonymous 2009-03-14 13:21

>>5

module Main where

main = putStrLn "Stop using joke languages, please."

Name: Anonymous 2009-03-14 13:22

print "You are all faggots"

Name: Anonymous 2009-03-14 13:32


"toy languages rule!\n".each_byte{|c|print c.chr}

Name: Anonymous 2009-03-14 13:33

>>4
grr how do I do this in a point-free style.

Name: Anonymous 2009-03-14 13:34

I meant, how do I coloured terminal output in Haskell?

Name: Anonymous 2009-03-14 13:37

>>10
you get on #haskell and use @pl

Name: Anonymous 2009-03-14 13:39

>>11
I'm sorry to inform you but that problem is NP-Complete

Name: Anonymous 2009-03-14 13:49

putStrLn "Hello, what's your name?" >> getLine >>= putStrLn . (++ " is a faggot.")

That was really simple, you must be a retard or perhaps IHBT.

Name: Anonymous 2009-03-14 14:46

>>11
data Colour = Black | Red | Green | Yellow | Blue | Magenta | Cyan | White deriving (Show, Read, Enum, Bounded)
colour c bold = putStr $ "\x1B[" ++ (if bold then "1" else "0") ++ ";" ++ show (fromEnum c + 30) ++ "m"
resetColour = putStr "\x1B[m"
-- Proper behaviour with nested calls is left as an exercise to the reader.
withColour c b a = bracket (colour c b) (const resetColour) (const a)


Or, you know, use a library for it.

Name: Anonymous 2009-03-14 15:14

>Colour

no, YOU should go to a library

Name: Anonymous 2009-03-14 15:16

>>16
IHBT

Name: Anonymous 2009-03-14 15:19

>>16
9/10
>>17

Name: Anonymous 2009-03-14 15:30


#include <stdio.h>

char *getLineR(FILE *in_stream, char *line, int n)
{
  char c = fgetc(in_stream);
  if (c != '\n') {
    line = getLineR(in_stream, line, n + 1);
  }
  else {
    line = malloc((n+2)*sizeof(char));
    if (line == NULL) exit(1);
    line[(n+1)] = '\0';
  }
  line[n] = c;
  return line;
}

int main()
{
  char c, *line;
  printf("Hi.");

  line = getLineR(stdin, NULL, 0);
  while (strcmp(line, "bye") != 0) {
    printf("I know you said \"%s\", but no you're a faggot.\n", line);
    line = getLineR(stdin, NULL, 0);
  }
  printf("Bye, faggot\n\n");
  return 0;
}

Name: Anonymous 2009-03-14 15:32


#include <stdlib.h>


oops

Name: Anonymous 2009-03-14 15:35


["Toy","Languages","Suck"].each{|s|eval("class "+s+";end;puts "+s+".new.class.to_s.downcase")}

Name: Anonymous 2009-03-14 15:47

>>19
loved your getline

Name: Anonymous 2010-11-26 21:48

Name: Anonymous 2010-12-23 8:34

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