Page 1 of 1

"Hidden features" of popular programming languages

Posted: 2009.06.22 (00:40)
by Calcy
I came across a bunch of threads that talked about hidden features or features not widely known in a number of languages, and there's some very interesting things you can do that you probably didn't know about. Check them out.

Probably the most evil "feature" I saw was this despicable line in Python:

Code: Select all

from __future__ import braces
Pure evil.

Re: "Hidden features" of popular programming languages

Posted: 2009.06.22 (04:44)
by toasters
Bahaha, that's just mean.

Re: "Hidden features" of popular programming languages

Posted: 2009.06.23 (03:00)
by Yoshimo
>>> from __future__ import braces
SyntaxError: not a chance (<pyshell#0>, line 1)

... I don't get it.

Re: "Hidden features" of popular programming languages

Posted: 2009.06.23 (03:30)
by LittleViking
These are very useful. Very useful.

One feature of PHP I just ran into today is fgetcsv(). It reads a single line from a file, parsing CSV format into an array. Nice and easy.