`that` with default #199

Closed
vendethiel opened this Issue Jan 26, 2013 · 9 comments

Comments

Projects
None yet
3 participants
Contributor

vendethiel commented Jan 26, 2013

That's maybe something designed, but that isn't anaphorized (switch a; case 1 then; default that) because default is not in Switch's aTargets (I know you know).

Owner

satyr commented Jan 26, 2013

something designed

Yep. Same for else.

Contributor

vendethiel commented Jan 26, 2013

I can see the why for else, since it's always falsy, but that's not the case for default

Owner

satyr commented Jan 26, 2013

Hm. Normal switch is an oddball for anaphorization to begin with: the topic isn't a truthy-check unlike others.

Options:

  1. Quit anaphorizing normal switch (with topic).
  2. Quit anaphorizing switch at all.
  3. Anaphorize for else/default as well.
  4. Leave them as is.
Contributor

vendethiel commented Jan 26, 2013

Not sure what you mean "with topic" ?

I suppose it could be added to else too (got into this case only once) for consistency with default, but that doesn't make must sense to me.

Owner

satyr commented Jan 26, 2013

switch topic  # <--
case candidate
  ...

switch  # topic-less
case condition
  ...
Contributor

vendethiel commented Jan 26, 2013

  1. or 5) anaphorize default but do not anaphorize topicless switch :D.
Owner

satyr commented Jan 26, 2013

do not anaphorize topicless switch

Why?

Contributor

vendethiel commented Jan 26, 2013

Because I had no idea it was giving this result. My bad, I retract that point. (I hardly see anaphorization for default in topic-less switch)

I would opine to anaphorize default as well.

satyr closed this in 48345ef Feb 27, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment