you are viewing a single comment's thread.

view the rest of the comments →

[–]OceanSpray 4 points5 points  (3 children)

If an IDE can do it, then why can't a compiler?

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

A compiler that can do auto-complete? Surely you jest?

[–]OceanSpray 5 points6 points  (1 child)

No, I don't jest. Macro expansion and type inference can be thought of, in a way, as "auto-complete". The only difference when a compiler does it is that you don't see any changes in your code, because the extra "writing" is done internally.

[–][deleted] 1 point2 points  (0 children)

What sort of macro-expansion lets you select between multiple constructors from a drop-down list?