3 ms·
Hello World in PHP is literally Hello World I know no other language that elegant.
by donatj 5y ago
Hello World in PHP is literally
Hello World
I know no other language that elegant.
- rei_ayanami 5y agoIf programing stopped there we wouldn't have an argument, its when you design high performant code that is maintained for over 10 years etc.
- Karellen 5y agom4
- mejutoco 5y agoFrom the top of my head, Javascript and Common Lisp will also work with "Hello World" (with quotes).
- donatj 5y agoI can’t speak for Lisp, but JavaScript isn’t going to write that to standard out, it would just be a statement that didn’t do anything. You would need something like import { stdout } from 'process'; stdout.write("Hello World");
- mejutoco 5y agoFair enough. On the client (just opening dev tools) it would return the string, but as you say, it depends on what we count as valid (repl, server-side, client). Probably the closest would be console.log("Hello World")
- richrichardsson 5y agoThe easiest Quine imaginable!
- chippiewill 5y agoBeing able to do a trivial hello world doesn't make a language elegant.