Is there a programming language where :)
is valid syntax (excluding custom defined templates or operator overloading etc)?
Asked
Active
Viewed 182 times
-1

Yu Hao
- 119,891
- 44
- 235
- 294

goofballLogic
- 37,883
- 8
- 44
- 62
-
2Totally unrelated to the question, but I highly approve of your username. – Amber Mar 24 '12 at 17:46
-
Something like this? http://xkcd.com/541/ – Mar 24 '12 at 17:46
-
YEAH! Someone else understands me! – goofballLogic Mar 24 '12 at 17:48
1 Answers
2
Matlab. a(:)
means "all the elements of a
arranged as a column vector". Given liberal whitespace, you could also write it as a( :)
.

Oliver Charlesworth
- 267,707
- 33
- 569
- 680
-
Well - I guess that is a correct answer. I wonder if anyone can find a language for which it works without "liberal whitespace" – goofballLogic Mar 24 '12 at 17:53