Giter Club home page Giter Club logo

Comments (8)

zolomatok avatar zolomatok commented on May 26, 2024 2

Thanks Daniel, really helpful! Read the readme like 5 times but I missed that :D

+1 for optional assignment, I never understood why it's not a thing in typescript and it's always a big bummer
conditional assignment is also very nice!

Civet has a really, really bright future 🌈

from civet.

zolomatok avatar zolomatok commented on May 26, 2024

Hmmm, I have VSC set to 4 spaces for indentation.
If I use 2 spaces, it works.

3 spaces creates this weird code:

let bla = (one: string, two: string) => {
  return  console.log(one)  
  (console.log(two))
}

from civet.

STRd6 avatar STRd6 commented on May 26, 2024

@zolomatok Currently the indentation in Civet is hard coded at two spaces and most things will work correctly with that.

I'm currently working on an update to allow for arbitrary/deeper nesting. I'll let you know when it's out.

from civet.

zolomatok avatar zolomatok commented on May 26, 2024

Ah, great, thanks Daniel!
Is there an official or unofficial roadmap for Civet?
I'm very curious to get a glimpse of what state the language is in at the moment.
Seems like there's a ton of work that already been done, I mean barring a few hiccups, the language already seems to have feature parity with coffee.

from civet.

STRd6 avatar STRd6 commented on May 26, 2024

@zolomatok The short term goal is to get to 97%-99% compatibility with Coffee2 using the "civet coffeeCompat" directive prologue. I'm running tests on the CoffeeScript codebase and fixing issues as I find them.

Then it's making sure there is a clear incremental migration path from some unfortunate Coffee inconsistencies (for in/of/from names are swapped, not precedence). Adding some extra features &blocks, increasing TypeScript support... and the big one of having a really nice VSCode LSP.

This section of the Readme is a pretty good place to check: https://github.com/DanielXMoore/Civet#things-removed-from-coffeescript especially the TODOs near the bottom.

from civet.

edemaine avatar edemaine commented on May 26, 2024

Also possibly of interest is a Discord server which originally had the goal of adding TypeScript features to CoffeeScript but it has a #civet channel where Daniel announces new releases and features and such, and we discuss direction.

from civet.

STRd6 avatar STRd6 commented on May 26, 2024

@zolomatok This should be fixed now (at least your specific example). Let me know if you find other cases that don't work.

from civet.

zolomatok avatar zolomatok commented on May 26, 2024

Works great, thank you!

from civet.

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.