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

Transpile to other languages #7

Open
mauriciotogneri opened this issue Aug 4, 2024 · 0 comments
Open

Transpile to other languages #7

mauriciotogneri opened this issue Aug 4, 2024 · 0 comments
Assignees
Labels
feature New feature or request tooling Tooling related issues

Comments

@mauriciotogneri
Copy link
Collaborator

mauriciotogneri commented Aug 4, 2024

Javascript

const factorial = (n) => n == 0 ? 1 : n * factorial(n - 1);

Dart

factorial(n) => n == 0 ? 1 : n * factorial(n - 1);

Python

def factorial(n): return 1 if n == 0 else n * factorial(n-1)

Ruby

def factorial(n)
  return 1 if n == 0
  return n * factorial(n - 1)
end

Lua

function factorial(n)
    return n == 0 and 1 or n * factorial(n - 1)
end
@mauriciotogneri mauriciotogneri added the feature New feature or request label Aug 4, 2024
@mauriciotogneri mauriciotogneri added this to the v4 milestone Aug 4, 2024
@mauriciotogneri mauriciotogneri self-assigned this Aug 4, 2024
@mauriciotogneri mauriciotogneri moved this to Todo in sdk Aug 7, 2024
@mauriciotogneri mauriciotogneri modified the milestones: 0.4.0, 0.5.0 Aug 9, 2024
@mauriciotogneri mauriciotogneri changed the title Compile to JS Transpile to JS Aug 9, 2024
@mauriciotogneri mauriciotogneri added the tooling Tooling related issues label Aug 9, 2024
@mauriciotogneri mauriciotogneri changed the title Transpile to JS Transpile to JavaScript Aug 10, 2024
@mauriciotogneri mauriciotogneri changed the title Transpile to JavaScript Transpile to other languages Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request tooling Tooling related issues
Projects
Status: Todo
Development

No branches or pull requests

1 participant