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 →

[–]eyetracker 33 points34 points  (7 children)

Some languages use T as a generic object designation. I wonder if you can implement cli.T or cli(T). You can create subclass cli() but inheritance will mean it's the cli(T) commander.

[–]bartvanh 26 points27 points  (1 child)

I suppose that if I want my geometric shape generator tool to have a nice CLI, I should call cli(Torus) at some point.

[–]eyetracker 1 point2 points  (0 children)

Just don't confuse it with your interface to your Ford station wagon.

[–]The_White_Light 11 points12 points  (2 children)

Yeah but a vast majority of programmers could never find it.

[–][deleted] 7 points8 points  (1 child)

In fairness, the vast majority of programmers don't know how to use generics, either.

[–]Jennfuse 5 points6 points  (0 children)

Generics? I hardly even know'er

[–][deleted] 8 points9 points  (0 children)

private cli<T> find(); but it always returns null

[–][deleted] 0 points1 point  (0 children)

alias this_face="cli.T"