Skip to content

Add more ops#26

Closed
dnwpark wants to merge 7 commits intomainfrom
more-ops
Closed

Add more ops#26
dnwpark wants to merge 7 commits intomainfrom
more-ops

Conversation

@dnwpark
Copy link
Contributor

@dnwpark dnwpark commented Jan 9, 2026

For things like type ShorterTuple[L, R] = If[LessThan[Length[L], Length[R]], L, R]

@dnwpark dnwpark requested a review from msullivan January 9, 2026 22:16
Copy link
Collaborator

@msullivan msullivan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not do these unless we've got a really compelling use case (though obviously it would make porting Doom to the type system easier).

I don't have any clear application for this in my head, and TypeScript manages without integer math in the type system.

The string manipulation stuff is all in typescript, and we have use-cases for a bunch of it. (Like generating a get_foo method for a foo attribute).

@dnwpark
Copy link
Contributor Author

dnwpark commented Jan 10, 2026

Is there a point to Length if we can't do anything with it then? 🤔

@dnwpark dnwpark closed this Jan 12, 2026
@dnwpark dnwpark deleted the more-ops branch January 12, 2026 21:05
@dnwpark dnwpark restored the more-ops branch January 12, 2026 21:05
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

Successfully merging this pull request may close these issues.

2 participants