Skip to content

Support creating T::Enum from Rails enums #3

@coreyja

Description

@coreyja

Hello!

Found this gem from the Tapioca Readme, about a place for DSL Compilers that didn't fit in Tapioca directly
I also believe that this gem has some Runtime support as well, which is something I don't believe tapioca supports at all.

I'm coming from using sorbet-rails and one thing that is looking to be painful in migrating is that we are heavily using their Runtime support for creating T::Enum classes from Rails enums (https://github.com/chanzuckerberg/sorbet-rails#typed_enum-instead-of-enum) [We don't use typed_enum but I couldn't find a better place in the Readme to link]

I'm curious if a compiler and support for this is something you might accept in this project?

We will likely write something in-house, but would be more than happy to contribute it back assuming is something others might find valuable!
No problem if not, but wanted to open an issue before we started working on it internally, so we could have a roadmap for the future of the compiler I imagine we will write sometime soon-(ish)!

Edit: Actually not sure if its just runtime code, or if we will need a DSL compiler as well. But I think my original question of it boba might want to support this still stands!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions