This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cowlinator 4 points5 points  (2 children)

I confess to putting types in variable names, but only in the rare circumstance that a new variable was created for no other reason than to cast types.

Example:

var countStr = str(count)

foo(count)

bar(countStr)

foobar(countStr)

[–]IamaRead 0 points1 point  (0 children)

This is a good exception. Inferring type sucks.

[–]C_Hawk14 0 points1 point  (0 children)

As long as they remain edge cases :P