ChicagoDave / fyrevmweb-react

FyreVM Tools, Projects, and Extensions for Glulx-Typescript Inform 7 stories
14 stars 6 forks source link

Consideration: Engine should not return undefined for main channels? #3

Open BroadcastGames opened 8 years ago

BroadcastGames commented 8 years ago

Maybe it's a good idea to change the specifications / docs on the engine so it doesn't return undefined for things like "mainContent" and would return empty string instead? That way it's just empty or populated and no need to have a third state of undefined.

Take it as a suggestion / discussion point.

ChicagoDave commented 8 years ago

I guess there could be cases where mainContent is empty. We would handle this in FyreVMWeb.ts in the bottom function. For each channel, check for content and if it's undefined, make it an empty string.