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
It would be amazing if Scala integrated YAML support (the format used by Ruby on Rails for all their config files) into the language: http://en.wikipedia.org/wiki/YAML
Geoffrey Alan Washburn (washburn) said:
This would probably be better requested through the SIP process.
Still, it would be interesting whether it would be possible to factor out the XML syntactic sugar into a compiler plugin, such that YAML could be implemented as a plugin as well. However, I imagine given the current implementation of the parser this would probably be kind of difficult. It would be pretty simple if the scanner and parser were defined using something like the combinator library, where it would be easy to extend the grammar in an object-oriented fashion.
It would be amazing if Scala integrated YAML support (the format used by Ruby on Rails for all their config files) into the language:
http://en.wikipedia.org/wiki/YAML
in particular block literals:
http://en.wikipedia.org/wiki/YAML#Block_literals
So, the equivalent XML code:
could become something like:
The text was updated successfully, but these errors were encountered: