sitron / lst

3 stars 3 forks source link

Syntax simplification for the planned entry #8

Closed jeanmonod closed 11 years ago

jeanmonod commented 11 years ago

Currently writing the planning for a sprint looks like:

      planned: [
       - date: 2013-09-03
         time: 10
       - date: 2013-09-04
         time: 8
       - date: 2013-09-05
         time: 16
       - date: 2013-09-06
         time: 3
       - date: 2013-09-09
         time: 16
       - date: 2013-09-10
         time: 14
       - date: 2013-09-11
         time: 7
       - date: 2013-09-12
         time: 16
       - date: 2013-09-13
         time: 2
       - date: 2013-09-16
         time: 16
       - date: 2013-09-17
         time: 24
       - date: 2013-09-18
         time: 8
       - date: 2013-09-19
         time: 4
       - date: 2013-09-20
         time: 4
       - date: 2013-09-23
         time: 14
       - date: 2013-09-24
         time: 22
       - date: 2013-09-25
         time: 14
       - date: 2013-09-26
         time: 22

Would be nice to have a shorter syntax without the keys, like:

      planned: [
          2013-09-03: 10
          2013-09-04: 8
          2013-09-05: 16
      ...

Even nicer, a simple array who cover all sprint period, by default saturday and sunday will be off the array:

      planned: [10, 8, 16, 3, ... ]

What about this, ok for this simplification?