Javascript DSL, composition of logical expressions

86 views
Skip to first unread message

Sergey Trofimov

unread,
Dec 8, 2012, 4:44:52 AM12/8/12
to lif...@googlegroups.com
Hello everyone.

I've realized some unexpected results using Javascript DSL logical expressions like JsNot, JsAnd, JsOr etc.

Simplest example:

scala> val exp = JsAnd(a, JsNot(JsOr(b, c)))
exp: net.liftweb.http.js.JE.JsAnd = JsExp(a && !b || c)


Logically I expect result like JsExp(a && !(b || c)).
For me it looks like all logical operations should be generated with parentheses around.
What do you think?
Should we create a ticket for this?

--
Sergey Trofimov

David Pollak

unread,
Dec 8, 2012, 3:27:41 PM12/8/12
to lif...@googlegroups.com
Yeah... please open a ticket.


--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
 
 
 



--
Telegram, Simply Beautiful CMS https://telegr.am
Lift, the simply functional web framework http://liftweb.net


Sergey Trofimov

unread,
Dec 9, 2012, 3:28:57 AM12/9/12
to lif...@googlegroups.com
The ticket is created https://github.com/lift/framework/issues/1378


--
Sergey Trofimov

David Pollak

unread,
Dec 9, 2012, 6:26:30 PM12/9/12
to lif...@googlegroups.com
Thanks!
Reply all
Reply to author
Forward
0 new messages