Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ambiguous syntax #2

Open
camshaft opened this issue May 26, 2015 · 3 comments
Open

ambiguous syntax #2

camshaft opened this issue May 26, 2015 · 3 comments

Comments

@camshaft
Copy link
Member

$is_editing || !should_randomize ?
  options :
  inspect(lists:shuffle(options))
@neborn
Copy link

neborn commented May 27, 2015

The following is also failing

poll.options_type == 'multi' && length(options) > 2

With the following error message

** (Elixir.Mazurka.Mediatype.SyntaxError) syntax error before: '>'

assigning length(options) > 2 to a variable and then including it in the boolean expression is a workaround.

@neborn
Copy link

neborn commented Jun 4, 2015

image

variable == 'value' || variable == 'other value' is breaking with the following message:
** (Elixir.Mazurka.Mediatype.SyntaxError) syntax error before: '=='

@neborn
Copy link

neborn commented Jun 4, 2015

On that last one, I also tried assigning the or to a variable, but that also doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants