5 ms·
Wow, I just have to reply! Which one of these do you prefer: echo("Hello") echo "Hello" "Hello".echo "Hello".echo() Or something different?
by gokr 12y ago
Wow, I just have to reply! Which one of these do you prefer:
echo("Hello")
echo "Hello"
"Hello".echo
"Hello".echo()
Or something different?
- avz 12y agoThis: cout << "Hello"; beats all of the above by a wide margin. It's essentially an ASCII-art ideographic representation of what the computer is supposed to do.
- dom96 12y agoproc `<<`(f: File, s: string) = f.write(s) stdout << "Hello World" There you go :)
- bluecalm 12y agoYeah, it's truly is fascinating. Maybe echo "Hello" Is the way ? :)
- EXetoC 12y agoI'd say so. Maybe even echo"Hello" if you're in a hurry; it's just that it's then treated a raw string :p
- def- 12y agoThe nice thing is that all 4 are valid Nim.