Details

    • Type: Improvement
    • Status: CLOSED
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Compiler (Misc)
    • Labels:
      None
    • Environment:

      yaml xml

      Description

      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:

      val labPhoneBook =
         <phonebook>
           <descr>Phone numbers of<b>XML</b> hackers.</descr>
           <entry>
               <name>Burak</name>
               <phone where="work"> +41 21 693 68 67 </phone>
               <phone where="mobile"> +41 78 601 54 36 </phone>
           </entry>
           <entry>
               <name>Gosling</name>
               <phone where="work"> +41 21 693 68 67 </phone>
               <phone where="mobile"> +41 78 601 54 36 </phone>
           </entry>
         </phonebook>;

      could become something like:

      val labPhoneBook = |
         descr: Phone numbers of<b>XML</b> hackers.
         entries:
             - entry:
                name: Burak
                phones: [work: +41 21 693 68 67, mobile: +41 78 601 54 36]
             - entry:
                name: Gosling
                phones: [work: +41 21 693 68 67, mobile: +41 78 601 54 36]
      ;

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jacek Jacek
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: