Giter Site home page Giter Site logo

Evaluate case conditionals about calliope HOT 7 CLOSED

nurugger07 avatar nurugger07 commented on September 4, 2024
Evaluate case conditionals

from calliope.

Comments (7)

nurugger07 avatar nurugger07 commented on September 4, 2024

I want to stick with indentation. It should be relatively easy to implement :) would you like to take this issue? Pull requests are welcome

On Sat, May 3, 2014 at 7:18 AM, Christian Di Lorenzo
[email protected] wrote:

Are you still planning on having an end for the case statement or are you planning to just use indention?

Reply to this email directly or view it on GitHub:
#22 (comment)

from calliope.

rcdilorenzo avatar rcdilorenzo commented on September 4, 2024

BTW, would it be more consistent to have the indentation for the different case values be before the - as in this example? This would allow the indentation detection as it currently works to be closer to what is needed.

- case data do
  - { :ok, content } ->
    %p= content
  - :error ->
    %p Something went wrong

from calliope.

nurugger07 avatar nurugger07 commented on September 4, 2024

I thought about that & I think I would prefer it. The question though is how would if/else look?

Would we be ok with a syntax like:

- if true do
  %p Hello
  - else
    % Goodbye

from calliope.

rcdilorenzo avatar rcdilorenzo commented on September 4, 2024

Probably not for the if/else scenario since in plain elixir it doesn't have the indention. However, since the case statement has indentation in plain elixir then I think it would be ok to go with it on the case statement.

from calliope.

nurugger07 avatar nurugger07 commented on September 4, 2024

I'm good with that :)

from calliope.

rcdilorenzo avatar rcdilorenzo commented on September 4, 2024

If I get a chance, I may try and pick this one up, but I'm not so sure that it will be soon.

from calliope.

nurugger07 avatar nurugger07 commented on September 4, 2024

Closed with PR #40

from calliope.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.