GUESS THAT LANGUAGE
1
Name:
Anonymous
2009-09-04 6:37
class Hello {
string mesg;
new() { mesg = "Hello World!\n"; }
static void main() {
print(mesg);
}
}
2
Name:
Anonymous
2009-09-04 7:04
D
3
Name:
Anonymous
2009-09-04 7:08
4
Name:
Anonymous
2009-09-04 7:10
i'm going to take a wild guess and say javascript
5
Name:
Anonymous
2009-09-04 7:12
C++.
6
Name:
Anonymous
2009-09-04 7:13
None of the above.
7
Name:
Anonymous
2009-09-04 7:14
ENTERPRISE Java?
8
Name:
Anonymous
2009-09-04 7:15
>>7
Close.
A few more wrong guesses, and I'll say.
9
Name:
Anonymous
2009-09-04 7:20
sepples
10
Name:
Anonymous
2009-09-04 7:35
clojure
11
Name:
Anonymous
2009-09-04 7:35
Haskell.
12
Name:
Anonymous
2009-09-04 7:38
>>8
what's the fun in that
13
Name:
Anonymous
2009-09-04 7:38
>>8
If it's not ENTERPRISE JAVA then it must be MICROSOFT JAVA
14
Name:
Anonymous
2009-09-04 7:44
>>10
This looks nothing like Clojure or Haskell, have you ever seen code in those languages? Of course it's possible to make an intepreter or compiler in those languages which would allow writing such code inline.
It looks C like, so I'm thinking either a variant of Java or D.
15
Name:
Anonymous
2009-09-04 8:32
16
Name:
Anonymous
2009-09-04 8:37
C# or a variant thereof?
17
Name:
Anonymous
2009-09-04 8:44
The Dick-Grabbing Victorian Language.
18
Name:
Anonymous
2009-09-04 8:56
Op here, it's Cola.
19
Name:
Anonymous
2009-09-04 9:00
20
Name:
Anonymous
2009-09-04 9:47
That wasted a good 30 seconds of my life.
21
Name:
Anonymous
2009-09-04 9:48
Lisp
22
Name:
Anonymous
2009-09-04 10:08
23
Name:
Anonymous
2009-09-04 10:21
お姉さま, hax my anus!
24
Name:
Anonymous
2009-09-04 10:55
25
Name:
Anonymous
2009-09-04 11:20
>>24
Looks like it's valid enough code, anyway.
26
Name:
Anonymous
2009-09-04 11:28
>>23
pegging? In my /prog/? It's more likely than you think
27
Name:
Anonymous
2009-09-04 11:54
OP here, it was Java.
28
Name:
Anonymous
2009-09-04 12:55
>>27
since when is it possible to use
print(); instead of
system.out.print();?
29
Name:
Anonymous
2009-09-04 12:58
>>28
Static imports in Java 5.0, but you'd need to have the import line at the very top
30
Name:
Anonymous
2009-09-04 13:00
wat?
mesg isnt static - main() can't access it
new() ??
please tell me im being trolled
31
Name:
Anonymous
2009-09-04 13:02
32
Name:
Anonymous
2009-09-04 13:11
33
Name:
Anonymous
2009-09-04 15:55
C#
34
Name:
Not OP
2009-09-04 15:55
Round 2
#pragma indent
using System
def capitalize = str => Char.ToUpper(str[0]).ToString() + str.Substring(1);
def beers(n)
| 0 => "no more bottles of beer"
| 1 => "1 more bottle of beer"
| _ => $"$n bottles of beer"
def onTheWall = n => $"$(beers(n)) on the wall, $(beers(n)).\n"
def passAround(n)
| 0 => $"Go to the store and buy some more, $(beers(99)) on the wall.\n"
| _ => $"Take one down and pass it around, $(beers(n-1)) on the wall.\n"
$[99, 98 .. 0].Iter(n => Console.WriteLine(capitalize(onTheWall(n)) + passAround(n)))
35
Name:
Anonymous
2009-09-04 16:01
Console.WriteLine
C#
36
Name:
Anonymous
2009-09-04 16:06
37
Name:
Anonymous
2009-09-04 16:15
38
Name:
Anonymous
2009-09-04 16:16
Java.
39
Name:
Anonymous
2009-09-04 16:21
Nemerle
40
Name:
Anonymous
2009-09-04 16:25
def
Ruby.
41
Name:
34
2009-09-04 22:09
42
Name:
Anonymous
2009-09-07 6:53
English.
43
Name:
2010-10-24 12:26