You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 19, 2018. It is now read-only.
I still don't see why can't we use YAML-like syntax after read three of the issue which mentioned below, and I also feel that {, } and [, ] are the most un-CoffeeScript syntaxes (Not indent enough).
which can get a little hard to read, and sometimes it's hard to find the right outdent level to put the comma (e.g. if this is wrapped in a function call). Having optional - syntax for making array items clearer would be nice for these cases, if it's disambiguatable in the parser.
(This is a YAML and TypeScript feature, but there's still a lot of other stuff in YAML not supported here, e.g. | to write literals. So I wouldn't necessarily call this YAML support, but it's still a nice feature.)
I still don't see why can't we use YAML-like syntax after read three of the issue which mentioned below, and I also feel that
{
,}
and[
,]
are the most un-CoffeeScript syntaxes (Not indent enough).So instead of having (CoffeeScript)
can we have RAML-like syntax like this?
and both compile to
More Examples
Types
CoffeeScript
YAML-like (the CoffeeScript one might be better than this)
JavaScript
Large structure
CoffeeScript
YAML-like
JavaScript
Other ideas
From Terser array syntax
Better support for YAML-like syntax
Enhancement: possible solution to the Array-Literal-Without-Brackets problem
Terser array syntax
The text was updated successfully, but these errors were encountered: