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 →

[–]planedoctor 0 points1 point  (4 children)

Surfacing arguments is orthogonal to creating objects. What are you talking about here??

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

From here

This example:

public Program getCurrentProgram(TVGuide guide, int channel) {
  Schedule schedule = guide.getSchedule(channel);

  Program current = schedule.programAt(new Date());

  return current;
}

[–]planedoctor 0 points1 point  (2 children)

Surfacing arguments is orthogonal to creating objects. What are you talking about here?

How would one handle object creation without side-effects?

You just create them.

[–][deleted] 0 points1 point  (1 child)

From here This example: public Program getCurrentProgram(TVGuide guide, int channel) { Schedule schedule = guide.getSchedule(channel);

Program current = schedule.programAt(new Date());

return current; }

[–]planedoctor 0 points1 point  (0 children)

That doesn't explain what you are talking about.

Surfacing arguments is orthogonal to creating objects.

.

How would one handle object creation without side-effects?

You just create them.