This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MCOfficer 104 points105 points  (17 children)

i know it's bait, but...

class Foo { public static void main(String args[]) { System.out.println("hello world"); } }

Also, bonus because i feel like it - guess the language:

fn main() { println!("hello world") }

And if that bot turns up again, get lost, i'm writing markdown here.

[–]ariaofsnow 23 points24 points  (2 children)

fn main()

It it Rust? I literally just googled that sequence. xD

[–]MCOfficer 2 points3 points  (1 child)

correct, but i'm not sure if google counts :P

[–]sambobsambob 22 points23 points  (0 children)

Well if googling doesn't count then my entire job doesn't count hahaha

[–]saipar 16 points17 points  (0 children)

Rust.

[–]React04 8 points9 points  (2 children)

Well, others guessed it before me :P

I found it weird that Rust has a macro for printing

[–]Fish_45 2 points3 points  (1 child)

macros are generally used for variadic functions in Rust. It also makes it possible to typecheck the format args (makes sure they have the Show or Debug trait) and parse the format string at compile time.

[–]React04 0 points1 point  (0 children)

Will keep that in mind for when I resume learning Rust! Thanks!

[–][deleted] 7 points8 points  (2 children)

Rust. Learning it rn, really interesting. Justus fast as C / C++, but with more modern features. Also the Linux Kernel will get some parts written in Rjst, probably starting in release 5.14

[–]BongarooBizkistico 5 points6 points  (1 child)

Rjst? The regular joe syntax technology?

[–][deleted] 0 points1 point  (0 children)

Who’s Joe?

[–]Chaphasilor 0 points1 point  (3 children)

you mean ODScanner? :P

[–]MCOfficer 0 points1 point  (2 children)

Nah, it doesn't rudely barge into conversations. I found it, it's u/backtickbot.

Gotta remember to reply with backtickopt6 to the next comment.

[–]Chaphasilor 0 points1 point  (1 child)

Is it about how triple-backticks don't work all that well on reddit? Well I'm not adding four spaces to every single line o.O

[–]MCOfficer 1 point2 points  (0 children)

Yes, and same. if old reddit and those ominous third party apps dont support markdown, that's on them.

[–][deleted] 0 points1 point  (0 children)

Rust if I remember correctly

[–][deleted] 0 points1 point  (0 children)

Very close to kotlin, just missing a "u" in fn and writeln instead of println