[openstack-dev] [Mistral] Changing "expression" delimiters in Mistral DSL

Alexander Tivelkov ativelkov at mirantis.com
Thu Feb 19 11:30:38 UTC 2015


​Folks,  one more thing to consider: the next big release of yaql (1.0,
coming really soon) will get support of curly brac​es (by default - to
initialise dictionaries in the following way:

v0.2/v0.3 syntax: dict(key1=>value1, key2=>value2)

v1 syntax: {key1=>value1, key2=>value2} (the old syntax works in v1 as well)


So, {} will become a valid yaql expression (empty dict). I believe it is
not a big deal to parse that correctly and differentiate between outer
markup and an expression contained within, however statements like <{{}}>
may be a little ugly.

--
Regards,
Alexander Tivelkov

On Thu, Feb 19, 2015 at 1:13 PM, Nikolay Makhotkin <nmakhotkin at mirantis.com>
wrote:

> Hi !
>
> From those three I'd choose only <{ ... }>, it looks better for YAML while
> '%' sign looks foreign for YAML. Moreover, it needs extra spaces for
> writing expressions:
>
> Compare:
> 1. <%$.var + 1%>
> 2. <% $.var + 1 %>
> 3. <{$.var + 1}>
>
> One more point from me: We can't do things just beacuse it is familiar
> with N things and it should be so.
>
>
> Best Regards,
> Nikolay
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150219/5cd4072d/attachment.html>


More information about the OpenStack-dev mailing list