satyr/coco

`that` with default

vendethiel opened this issue · 9 comments

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).

something designed

Yep. Same for else.

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

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.

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.

switch topic  # <--
case candidate
  ...

switch  # topic-less
case condition
  ...
  1. or 5) anaphorize default but do not anaphorize topicless switch :D.

do not anaphorize topicless switch

Why?

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.