4 ms·
Looks nice. All these choices you have to make had me wonder: we've made formatting entirely part of a language but it seems a lot of it could be moved into th
by 6510 4y ago
Looks nice.
All these choices you have to make had me wonder: we've made formatting entirely part of a language but it seems a lot of it could be moved into the editor. Does it really matter if:
if(foo==bar){{/*do something*/}}
if foo==bar (/*do something*/)
<if foo==bar>/*do something*/</if>
foo&bar && /*do something*/
{if:foo==bar, do:/*do something*/, oncomplete:a(), break:b()}
It could just be whatever the user chose in their editor (with an option to publish their custom solution) The code in the actual file can be any of the existing languages which would put some limitations on the formatting choices but if that gets annoying it could be addressed at many levels.
Does this sound fun or should we pretend no one ever mentioned it?
- levodelellis 4y agoSounds like it would confusing to read due to inconsistent styles. A few people write transpilers for fun to change syntax of simple languages so it's not an uncommon thought