"Hidden features" of popular programming languages

Talk about computers, hardware, applications, and consumer electronics.
User avatar
Legacy Elite
Legacy Elite
Posts: 84
Joined: 2008.09.21 (06:05)
Location: Wisconsin
Contact:

Postby Calcy » 2009.06.22 (00:40)

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.
Image

Image

Image

Jedi Pimp
Posts: 670
Joined: 2008.09.30 (16:14)
NUMA Profile: http://nmaps.net/user/toasters
MBTI Type: ISTP

Postby toasters » 2009.06.22 (04:44)

Bahaha, that's just mean.
------------------------------------------------------------
/////////////////////// solar beats ///////////////////////
------------------------------------------------------------

User avatar
The 700 Club
Posts: 744
Joined: 2008.10.17 (00:28)
NUMA Profile: http://nmaps.net/user/BionicCryonic
Location: Lethal Lava Land

Postby Yoshimo » 2009.06.23 (03:00)

>>> from __future__ import braces
SyntaxError: not a chance (<pyshell#0>, line 1)

... I don't get it.
spoiler

Image
Image


User avatar
Damn You're Fine
Posts: 384
Joined: 2008.09.19 (01:47)
NUMA Profile: http://nmaps.net/user/littleviking001
MBTI Type: INTP
Location: Southern California
Contact:

Postby LittleViking » 2009.06.23 (03:30)

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.
Image
The last Metroid is in captivity. The galaxy is at peace...


Who is online

Users browsing this forum: No registered users and 13 guests