Archive

Archive for July, 2010

Hypothetically speaking…

July 19th, 2010 John Van Enk No comments

Hypothetically speaking…

… if you were working on a language which was in many ways similar to (and targets) C but added more expressive types, type inference, and polymorphism, how would you interpret the following line of code?

x = "foo";

The options are:

char x[] = "foo";

or

char * x = "foo";

Thoughts?

Categories: Uncategorized Tags: